WordPress

Briefly unavailable for scheduled maintenance.
Check back in a some hours.
403WebShell
403Webshell
Server IP : 38.242.244.58  /  Your IP : 216.73.217.174
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1486879.contaboserver.net 5.4.0-166-generic #183-Ubuntu SMP Mon Oct 2 11:28:33 UTC 2023 x86_64
User : root ( 0)
PHP Version : 7.4.3-4ubuntu2.19
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/sura/src/Entity/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/sura/src/Entity/Release.php
<?php

namespace App\Entity;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Table(name="release_form")
 * @ORM\HasLifecycleCallbacks()
 * @ORM\Entity(repositoryClass="App\Repository\ReleaseRepository")
 */
class Release
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="string", length=255 , nullable=true   )
     */
    private $title;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $fileName;

    /**
     * @ORM\Column(type="datetime")
     */
    private $createAt;

    /**
     * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="releases")
     */
    private $createBy;

    /**
     * @ORM\OneToMany(targetEntity="App\Entity\StockModel", mappedBy="modelRelease")
     */
    private $stockModels;

    /**
     * @ORM\ManyToOne(targetEntity="App\Entity\Model", inversedBy="releases, nullable=true")
     */
    private $model;

    /**
     * @ORM\OneToMany(targetEntity="App\Entity\StockRelease", mappedBy="TheRelease")
     */
    private $stockReleases;

    /**
     * @ORM\Column(type="float", nullable=true)
     */
    private $payoutPercent;

    /**
     * @ORM\Column(type="integer", nullable=true )
     */
    private $oldID;
    /**
     * @return mixed
     */
    public function getOldID()
    {
        return $this->oldID;
    }

    /**
     * @param mixed $oldID
     */
    public function setOldID($oldID)
    {
        $this->oldID = $oldID;
    }


    public function __construct()
    {
        $this->stockModels = new ArrayCollection();
        $this->stockReleases = new ArrayCollection();
    }

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getTitle(): ?string
    {
        return $this->title;
    }

    public function setTitle(string $title): self
    {
        $this->title = $title;

        return $this;
    }

    public function getFileName()
    {
        return $this->fileName;
    }

    public function setFileName($fileName): self
    {
        $this->fileName = $fileName;

        return $this;
    }

    public function getCreateAt(): ?\DateTimeInterface
    {
        return $this->createAt;
    }

    public function setCreateAt(\DateTimeInterface $createAt): self
    {
        $this->createAt = $createAt;

        return $this;
    }

    public function getCreateBy(): ?User
    {
        return $this->createBy;
    }

    public function setCreateBy(?User $createBy): self
    {
        $this->createBy = $createBy;

        return $this;
    }

    /**
     * @return Collection|StockModel[]
     */
    public function getStockModels(): Collection
    {
        return $this->stockModels;
    }

    public function addStockModel(StockModel $stockModel): self
    {
        if (!$this->stockModels->contains($stockModel)) {
            $this->stockModels[] = $stockModel;
            $stockModel->setModelRelease($this);
        }

        return $this;
    }


    public function removeStockModel(StockModel $stockModel): self
    {
        if ($this->stockModels->contains($stockModel)) {
            $this->stockModels->removeElement($stockModel);
            // set the owning side to null (unless already changed)
            if ($stockModel->getModelRelease() === $this) {
                $stockModel->setModelRelease(null);
            }
        }

        return $this;
    }

    /**
     * @ORM\PrePersist
     */
    public function setCreatedAtValue()
    {
        $this->createAt = new \DateTime();
    }

    public function __toString()
    {
        return $this->getTitle()==null?'':$this->getTitle();
        // TODO: Implement __toString() method.
    }

    public function getModel(): ?Model
    {
        return $this->model;
    }

    public function setModel(?Model $model): self
    {
        $this->model = $model;

        return $this;
    }

    /**
     * @return Collection|StockRelease[]
     */
    public function getStockReleases(): Collection
    {
        return $this->stockReleases;
    }

    public function addStockRelease(StockRelease $stockRelease): self
    {
        if (!$this->stockReleases->contains($stockRelease)) {
            $this->stockReleases[] = $stockRelease;
            $stockRelease->setTheRelease($this);
        }

        return $this;
    }

    public function removeStockRelease(StockRelease $stockRelease): self
    {
        if ($this->stockReleases->contains($stockRelease)) {
            $this->stockReleases->removeElement($stockRelease);
            // set the owning side to null (unless already changed)
            if ($stockRelease->getTheRelease() === $this) {
                $stockRelease->setTheRelease(null);
            }
        }

        return $this;
    }

    public function getPayoutPercent(): ?float
    {
        return $this->payoutPercent;
    }

    public function setPayoutPercent(?float $payoutPercent): self
    {
        $this->payoutPercent = $payoutPercent;

        return $this;
    }


}

Youez - 2016 - github.com/yon3zu
LinuXploit