src/Entity/CancellationRequest.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CancellationRequestRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=CancellationRequestRepository::class)
  8.  * @Auditable()
  9.  */
  10. class CancellationRequest
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Users::class)
  20.      */
  21.     private $userCreate;
  22.     /**
  23.      * @ORM\Column(type="datetime", nullable=true)
  24.      */
  25.     private $dateCreate;
  26.     /**
  27.      * @ORM\Column(type="text", nullable=true)
  28.      */
  29.     private $reason;
  30.     /**
  31.      * @ORM\Column(type="boolean")
  32.      */
  33.     private $isDeleted;
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      */
  37.     private $status;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $folderNumber;
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity=Folder::class)
  44.      */
  45.     private $folder;
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity=Sites::class)
  48.      */
  49.     private $site;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity=Users::class)
  52.      */
  53.     private $userRejection;
  54.     /**
  55.      * @ORM\Column(type="datetime", nullable=true)
  56.      */
  57.     private $dateRejection;
  58.     /**
  59.      * @ORM\Column(type="text", nullable=true)
  60.      */
  61.     private $rejectionComment;
  62.     /**
  63.      * @ORM\ManyToOne(targetEntity=Users::class)
  64.      */
  65.     private $userCancellation;
  66.     /**
  67.      * @ORM\Column(type="datetime", nullable=true)
  68.      */
  69.     private $dateCancellation;
  70.     public function getId(): ?int
  71.     {
  72.         return $this->id;
  73.     }
  74.     public function getUserCreate(): ?Users
  75.     {
  76.         return $this->userCreate;
  77.     }
  78.     public function setUserCreate(?Users $userCreate): self
  79.     {
  80.         $this->userCreate $userCreate;
  81.         return $this;
  82.     }
  83.     public function getDateCreate(): ?\DateTimeInterface
  84.     {
  85.         return $this->dateCreate;
  86.     }
  87.     public function setDateCreate(?\DateTimeInterface $dateCreate): self
  88.     {
  89.         $this->dateCreate $dateCreate;
  90.         return $this;
  91.     }
  92.     public function getReason(): ?string
  93.     {
  94.         return $this->reason;
  95.     }
  96.     public function setReason(?string $reason): self
  97.     {
  98.         $this->reason $reason;
  99.         return $this;
  100.     }
  101.     public function getIsDeleted(): ?bool
  102.     {
  103.         return $this->isDeleted;
  104.     }
  105.     public function setIsDeleted(bool $isDeleted): self
  106.     {
  107.         $this->isDeleted $isDeleted;
  108.         return $this;
  109.     }
  110.     public function getStatus(): ?string
  111.     {
  112.         return $this->status;
  113.     }
  114.     public function setStatus(?string $status): self
  115.     {
  116.         $this->status $status;
  117.         return $this;
  118.     }
  119.     public function getFolderNumber(): ?string
  120.     {
  121.         return $this->folderNumber;
  122.     }
  123.     public function setFolderNumber(?string $folderNumber): self
  124.     {
  125.         $this->folderNumber $folderNumber;
  126.         return $this;
  127.     }
  128.     public function getFolder(): ?Folder
  129.     {
  130.         return $this->folder;
  131.     }
  132.     public function setFolder(?Folder $folder): self
  133.     {
  134.         $this->folder $folder;
  135.         return $this;
  136.     }
  137.     public function getSite(): ?Sites
  138.     {
  139.         return $this->site;
  140.     }
  141.     public function setSite(?Sites $site): self
  142.     {
  143.         $this->site $site;
  144.         return $this;
  145.     }
  146.     public function getUserRejection(): ?Users
  147.     {
  148.         return $this->userRejection;
  149.     }
  150.     public function setUserRejection(?Users $userRejection): self
  151.     {
  152.         $this->userRejection $userRejection;
  153.         return $this;
  154.     }
  155.     public function getDateRejection(): ?\DateTimeInterface
  156.     {
  157.         return $this->dateRejection;
  158.     }
  159.     public function setDateRejection(?\DateTimeInterface $dateRejection): self
  160.     {
  161.         $this->dateRejection $dateRejection;
  162.         return $this;
  163.     }
  164.     public function getRejectionComment(): ?string
  165.     {
  166.         return $this->rejectionComment;
  167.     }
  168.     public function setRejectionComment(?string $rejectionComment): self
  169.     {
  170.         $this->rejectionComment $rejectionComment;
  171.         return $this;
  172.     }
  173.     public function getUserCancellation(): ?Users
  174.     {
  175.         return $this->userCancellation;
  176.     }
  177.     public function setUserCancellation(?Users $userCancellation): self
  178.     {
  179.         $this->userCancellation $userCancellation;
  180.         return $this;
  181.     }
  182.     public function getDateCancellation(): ?\DateTimeInterface
  183.     {
  184.         return $this->dateCancellation;
  185.     }
  186.     public function setDateCancellation(?\DateTimeInterface $dateCancellation): self
  187.     {
  188.         $this->dateCancellation $dateCancellation;
  189.         return $this;
  190.     }
  191. }