src/Entity/Retirage.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RetirageRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassRetirageRepository::class)]
  9. class Retirage
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $name null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $firstname null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $mail null;
  21.     #[ORM\Column(length16)]
  22.     private ?string $phone null;
  23.     #[ORM\Column(length510nullabletrue)]
  24.     private ?string $adress null;
  25.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  26.     private ?\DateTimeInterface $visitDate null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?int $ticketNumber null;
  29.     #[ORM\Column(length1024nullabletrue)]
  30.     private ?string $comment null;
  31.     #[ORM\OneToMany(mappedBy'retirage'targetEntityImages::class, cascade:['persist'"remove"])]
  32.     private Collection $images;
  33.     #[ORM\Column(typeTypes::DATE_MUTABLEnullable:true)]
  34.     private ?\DateTimeInterface $creationDate null;
  35.     #[ORM\Column(length255nullabletrue)]
  36.     private ?string $city null;
  37.     #[ORM\Column(length16nullabletrue)]
  38.     private ?string $postalCode null;
  39.     #[ORM\Column(nullabletrue)]
  40.     private ?bool $isDone null;
  41.     #[ORM\Column(nullabletrue)]
  42.     private ?bool $isNumeric null;
  43.     #[ORM\Column(nullabletrue)]
  44.     private ?bool $isPhysic null;
  45.     #[ORM\Column(nullabletrue)]
  46.     private ?int $parc null;
  47.     public function __construct()
  48.     {
  49.         $this->images = new ArrayCollection();
  50.     }
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getName(): ?string
  56.     {
  57.         return $this->name;
  58.     }
  59.     public function setName(string $name): self
  60.     {
  61.         $this->name $name;
  62.         return $this;
  63.     }
  64.     public function getFirstname(): ?string
  65.     {
  66.         return $this->firstname;
  67.     }
  68.     public function setFirstname(string $firstname): self
  69.     {
  70.         $this->firstname $firstname;
  71.         return $this;
  72.     }
  73.     public function getMail(): ?string
  74.     {
  75.         return $this->mail;
  76.     }
  77.     public function setMail(string $mail): self
  78.     {
  79.         $this->mail $mail;
  80.         return $this;
  81.     }
  82.     public function getPhone(): ?string
  83.     {
  84.         return $this->phone;
  85.     }
  86.     public function setPhone(string $phone): self
  87.     {
  88.         $this->phone $phone;
  89.         return $this;
  90.     }
  91.     public function getAdress(): ?string
  92.     {
  93.         return $this->adress;
  94.     }
  95.     public function setAdress(?string $adress): self
  96.     {
  97.         $this->adress $adress;
  98.         return $this;
  99.     }
  100.     public function getVisitDate(): ?\DateTimeInterface
  101.     {
  102.         return $this->visitDate;
  103.     }
  104.     public function setVisitDate(\DateTimeInterface $visitDate): self
  105.     {
  106.         $this->visitDate $visitDate;
  107.         return $this;
  108.     }
  109.     public function getTicketNumber(): ?int
  110.     {
  111.         return $this->ticketNumber;
  112.     }
  113.     public function setTicketNumber(?int $ticketNumber): self
  114.     {
  115.         $this->ticketNumber $ticketNumber;
  116.         return $this;
  117.     }
  118.     public function getComment(): ?string
  119.     {
  120.         return $this->comment;
  121.     }
  122.     public function setComment(?string $comment): self
  123.     {
  124.         $this->comment $comment;
  125.         return $this;
  126.     }
  127.     /**
  128.      * @return Collection<int, Images>
  129.      */
  130.     public function getImages(): Collection
  131.     {
  132.         return $this->images;
  133.     }
  134.     public function addImage(Images $image): self
  135.     {
  136.         if (!$this->images->contains($image)) {
  137.             $this->images->add($image);
  138.             $image->setRetirage($this);
  139.         }
  140.         return $this;
  141.     }
  142.     public function removeImage(Images $image): self
  143.     {
  144.         if ($this->images->removeElement($image)) {
  145.             // set the owning side to null (unless already changed)
  146.             if ($image->getRetirage() === $this) {
  147.                 $image->setRetirage(null);
  148.             }
  149.         }
  150.         return $this;
  151.     }
  152.     public function getCreationDate(): ?\DateTimeInterface
  153.     {
  154.         return $this->creationDate;
  155.     }
  156.     public function setCreationDate(\DateTimeInterface $creationDate): self
  157.     {
  158.         $this->creationDate $creationDate;
  159.         return $this;
  160.     }
  161.     public function getCity(): ?string
  162.     {
  163.         return $this->city;
  164.     }
  165.     public function setCity(?string $city): self
  166.     {
  167.         $this->city $city;
  168.         return $this;
  169.     }
  170.     public function getPostalCode(): ?string
  171.     {
  172.         return $this->postalCode;
  173.     }
  174.     public function setPostalCode(?string $postalCode): self
  175.     {
  176.         $this->postalCode $postalCode;
  177.         return $this;
  178.     }
  179.     public function isIsDone(): ?bool
  180.     {
  181.         return $this->isDone;
  182.     }
  183.     public function setIsDone(?bool $isDone): self
  184.     {
  185.         $this->isDone $isDone;
  186.         return $this;
  187.     }
  188.     public function isIsNumeric(): ?bool
  189.     {
  190.         return $this->isNumeric;
  191.     }
  192.     public function setIsNumeric(?bool $isNumeric): self
  193.     {
  194.         $this->isNumeric $isNumeric;
  195.         return $this;
  196.     }
  197.     public function isPhysic(): ?bool
  198.     {
  199.         return $this->isPhysic;
  200.     }
  201.     public function setIsPhysic(?bool $isNumeric): self
  202.     {
  203.         $this->isPhysic$isPhysic;
  204.         return $this;
  205.     }
  206.     public function getParc(): ?int
  207.     {
  208.         return $this->parc;
  209.     }
  210.     public function setParc(?int $parc): self
  211.     {
  212.         $this->parc $parc;
  213.         return $this;
  214.     }
  215. }