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'])]
  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 ?int $parc null;
  43.     public function __construct()
  44.     {
  45.         $this->images = new ArrayCollection();
  46.     }
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getName(): ?string
  52.     {
  53.         return $this->name;
  54.     }
  55.     public function setName(string $name): self
  56.     {
  57.         $this->name $name;
  58.         return $this;
  59.     }
  60.     public function getFirstname(): ?string
  61.     {
  62.         return $this->firstname;
  63.     }
  64.     public function setFirstname(string $firstname): self
  65.     {
  66.         $this->firstname $firstname;
  67.         return $this;
  68.     }
  69.     public function getMail(): ?string
  70.     {
  71.         return $this->mail;
  72.     }
  73.     public function setMail(string $mail): self
  74.     {
  75.         $this->mail $mail;
  76.         return $this;
  77.     }
  78.     public function getPhone(): ?string
  79.     {
  80.         return $this->phone;
  81.     }
  82.     public function setPhone(string $phone): self
  83.     {
  84.         $this->phone $phone;
  85.         return $this;
  86.     }
  87.     public function getAdress(): ?string
  88.     {
  89.         return $this->adress;
  90.     }
  91.     public function setAdress(?string $adress): self
  92.     {
  93.         $this->adress $adress;
  94.         return $this;
  95.     }
  96.     public function getVisitDate(): ?\DateTimeInterface
  97.     {
  98.         return $this->visitDate;
  99.     }
  100.     public function setVisitDate(\DateTimeInterface $visitDate): self
  101.     {
  102.         $this->visitDate $visitDate;
  103.         return $this;
  104.     }
  105.     public function getTicketNumber(): ?int
  106.     {
  107.         return $this->ticketNumber;
  108.     }
  109.     public function setTicketNumber(?int $ticketNumber): self
  110.     {
  111.         $this->ticketNumber $ticketNumber;
  112.         return $this;
  113.     }
  114.     public function getComment(): ?string
  115.     {
  116.         return $this->comment;
  117.     }
  118.     public function setComment(?string $comment): self
  119.     {
  120.         $this->comment $comment;
  121.         return $this;
  122.     }
  123.     /**
  124.      * @return Collection<int, Images>
  125.      */
  126.     public function getImages(): Collection
  127.     {
  128.         return $this->images;
  129.     }
  130.     public function addImage(Images $image): self
  131.     {
  132.         if (!$this->images->contains($image)) {
  133.             $this->images->add($image);
  134.             $image->setRetirage($this);
  135.         }
  136.         return $this;
  137.     }
  138.     public function removeImage(Images $image): self
  139.     {
  140.         if ($this->images->removeElement($image)) {
  141.             // set the owning side to null (unless already changed)
  142.             if ($image->getRetirage() === $this) {
  143.                 $image->setRetirage(null);
  144.             }
  145.         }
  146.         return $this;
  147.     }
  148.     public function getCreationDate(): ?\DateTimeInterface
  149.     {
  150.         return $this->creationDate;
  151.     }
  152.     public function setCreationDate(\DateTimeInterface $creationDate): self
  153.     {
  154.         $this->creationDate $creationDate;
  155.         return $this;
  156.     }
  157.     public function getCity(): ?string
  158.     {
  159.         return $this->city;
  160.     }
  161.     public function setCity(?string $city): self
  162.     {
  163.         $this->city $city;
  164.         return $this;
  165.     }
  166.     public function getPostalCode(): ?string
  167.     {
  168.         return $this->postalCode;
  169.     }
  170.     public function setPostalCode(?string $postalCode): self
  171.     {
  172.         $this->postalCode $postalCode;
  173.         return $this;
  174.     }
  175.     public function isIsDone(): ?bool
  176.     {
  177.         return $this->isDone;
  178.     }
  179.     public function setIsDone(?bool $isDone): self
  180.     {
  181.         $this->isDone $isDone;
  182.         return $this;
  183.     }
  184.     public function getParc(): ?int
  185.     {
  186.         return $this->parc;
  187.     }
  188.     public function setParc(?int $parc): self
  189.     {
  190.         $this->parc $parc;
  191.         return $this;
  192.     }
  193. }