src/Entity/RequestModification.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RequestModificationRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=RequestModificationRepository::class)
  9.  */
  10. class RequestModification
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="text")
  20.      */
  21.     private $text;
  22.     /**
  23.      * @ORM\Column(type="datetime")
  24.      */
  25.     private $createdAt;
  26.     /**
  27.      * @ORM\Column(type="boolean")
  28.      */
  29.     private $deleted false;
  30.     /**
  31.      * @ORM\Column(type="boolean")
  32.      */
  33.     private $isRead false;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=Users::class, inversedBy="requestModifications")
  36.      * @ORM\JoinColumn(nullable=false)
  37.      */
  38.     private $createdBy;
  39.     /**
  40.      * @ORM\ManyToOne(targetEntity=Users::class, inversedBy="requestModificationsUser")
  41.      */
  42.     private $responsable;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity=Establishments::class, inversedBy="requestModifications")
  45.      */
  46.     private $company;
  47.     /**
  48.      * @ORM\Column(type="string", length=255, nullable=true)
  49.      */
  50.     private $email;
  51.     /**
  52.      * @ORM\Column(type="string", length=255, nullable=true)
  53.      */
  54.     private $title;
  55.     
  56.     /**
  57.      * @ORM\Column(type="datetime", nullable=true)
  58.      */
  59.     private $isReadAt null;
  60.     /**
  61.      * @ORM\ManyToOne(targetEntity=RequestModificationStatus::class, inversedBy="requestModifications")
  62.      */
  63.     private $RequestModificationStatus;
  64.     /**
  65.      * @ORM\Column(type="string", length=255, nullable=true)
  66.      */
  67.     private $deliveryAddress;
  68.     /**
  69.      * @ORM\Column(type="string", length=255, nullable=true)
  70.      */
  71.     private $tvaNumber;
  72.     /**
  73.      * @ORM\Column(type="integer")
  74.      */
  75.     private $type;
  76.     /**
  77.      * @ORM\Column(type="string", length=255, nullable=true)
  78.      */
  79.     private $companyName;
  80.     /**
  81.      * @ORM\ManyToOne(targetEntity=TVA::class, inversedBy="requestModifications")
  82.      */
  83.     private $tvaSubject;
  84.     public function __construct()
  85.     {
  86.         $this->createdAt = new \DateTime();
  87.         $this->createdBy = new ArrayCollection();
  88.         $this->responsable = new ArrayCollection();
  89.         $this->status = new ArrayCollection();
  90.     }
  91.     public function getId(): ?int
  92.     {
  93.         return $this->id;
  94.     }
  95.     public function getText()
  96.     {
  97.         return $this->text;
  98.     }
  99.     public function setText($text): self
  100.     {
  101.         $this->text $text;
  102.         return $this;
  103.     }
  104.     public function getCreatedAt(): ?\DateTimeInterface
  105.     {
  106.         return $this->createdAt;
  107.     }
  108.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  109.     {
  110.         $this->createdAt $createdAt;
  111.         return $this;
  112.     }
  113.     public function getDeleted(): ?bool
  114.     {
  115.         return $this->deleted;
  116.     }
  117.     public function setDeleted(bool $deleted): self
  118.     {
  119.         $this->deleted $deleted;
  120.         return $this;
  121.     }
  122.     public function getIsRead(): ?bool
  123.     {
  124.         return $this->isRead;
  125.     }
  126.     public function setIsRead(bool $isRead): self
  127.     {
  128.         $this->isRead $isRead;
  129.         return $this;
  130.     }
  131.     public function setCreatedBy(?Users $createdBy): self
  132.     {
  133.         $this->createdBy $createdBy;
  134.         return $this;
  135.     }
  136.     public function getCreatedBy(): ?Users
  137.     {
  138.         return $this->createdBy;
  139.     }
  140.     public function setResponsable(?Users $responsable): self
  141.     {
  142.         $this->responsable $responsable;
  143.         return $this;
  144.     }
  145.     public function getResponsable(): ?Users
  146.     {
  147.         return $this->responsable;
  148.     }
  149.     public function getCompany(): ?Establishments
  150.     {
  151.         return $this->company;
  152.     }
  153.     public function setCompany(?Establishments $company): self
  154.     {
  155.         $this->company $company;
  156.         return $this;
  157.     }
  158.     public function getIsReadAt(): ?\DateTimeInterface
  159.     {
  160.         return $this->isReadAt;
  161.     }
  162.     public function setIsReadAt(?\DateTimeInterface $isReadAt): self
  163.     {
  164.         $this->isReadAt $isReadAt;
  165.         return $this;
  166.     }
  167.     public function getRequestModificationStatus(): ?RequestModificationStatus
  168.     {
  169.         return $this->RequestModificationStatus;
  170.     }
  171.     public function setRequestModificationStatus(?RequestModificationStatus $RequestModificationStatus): self
  172.     {
  173.         $this->RequestModificationStatus $RequestModificationStatus;
  174.         return $this;
  175.     }
  176.     public function getEmail(): ?string
  177.     {
  178.         return $this->email;
  179.     }
  180.     public function setEmail(?string $email): self
  181.     {
  182.         $this->email $email;
  183.         return $this;
  184.     }
  185.     public function getTitle(): ?string
  186.     {
  187.         return $this->title;
  188.     }
  189.     public function setTitle(?string $title): self
  190.     {
  191.         $this->title $title;
  192.         return $this;
  193.     }
  194.     public function getText1(): ?string
  195.     {
  196.         return $this->text1;
  197.     }
  198.     public function getDeliveryAddress(): ?string
  199.     {
  200.         return $this->deliveryAddress;
  201.     }
  202.     public function setDeliveryAddress(?string $deliveryAddress): self
  203.     {
  204.         $this->deliveryAddress $deliveryAddress;
  205.         return $this;
  206.     }
  207.     public function getTvaNumber(): ?string
  208.     {
  209.         return $this->tvaNumber;
  210.     }
  211.     public function setTvaNumber(?string $tvaNumber): self
  212.     {
  213.         $this->tvaNumber $tvaNumber;
  214.         return $this;
  215.     }
  216.     public function getType(): ?int
  217.     {
  218.         return $this->type;
  219.     }
  220.     public function setType(int $type): self
  221.     {
  222.         $this->type $type;
  223.         return $this;
  224.     }
  225.     public function getCompanyName(): ?string
  226.     {
  227.         return $this->companyName;
  228.     }
  229.     public function setCompanyName(?string $companyName): self
  230.     {
  231.         $this->companyName $companyName;
  232.         return $this;
  233.     }
  234.     public function getTvaSubject(): ?TVA
  235.     {
  236.         return $this->tvaSubject;
  237.     }
  238.     public function setTvaSubject(?TVA $tvaSubject): self
  239.     {
  240.         $this->tvaSubject $tvaSubject;
  241.         return $this;
  242.     }
  243. }