<?phpnamespace App\Entity;use App\Repository\RetirageRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: RetirageRepository::class)]class Retirage{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $name = null; #[ORM\Column(length: 255)] private ?string $firstname = null; #[ORM\Column(length: 255)] private ?string $mail = null; #[ORM\Column(length: 16)] private ?string $phone = null; #[ORM\Column(length: 510, nullable: true)] private ?string $adress = null; #[ORM\Column(type: Types::DATE_MUTABLE)] private ?\DateTimeInterface $visitDate = null; #[ORM\Column(nullable: true)] private ?int $ticketNumber = null; #[ORM\Column(length: 1024, nullable: true)] private ?string $comment = null; #[ORM\OneToMany(mappedBy: 'retirage', targetEntity: Images::class, cascade:['persist'])] private Collection $images; #[ORM\Column(type: Types::DATE_MUTABLE, nullable:true)] private ?\DateTimeInterface $creationDate = null; #[ORM\Column(length: 255, nullable: true)] private ?string $city = null; #[ORM\Column(length: 16, nullable: true)] private ?string $postalCode = null; #[ORM\Column(nullable: true)] private ?bool $isDone = null; #[ORM\Column(nullable: true)] private ?int $parc = null; public function __construct() { $this->images = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getFirstname(): ?string { return $this->firstname; } public function setFirstname(string $firstname): self { $this->firstname = $firstname; return $this; } public function getMail(): ?string { return $this->mail; } public function setMail(string $mail): self { $this->mail = $mail; return $this; } public function getPhone(): ?string { return $this->phone; } public function setPhone(string $phone): self { $this->phone = $phone; return $this; } public function getAdress(): ?string { return $this->adress; } public function setAdress(?string $adress): self { $this->adress = $adress; return $this; } public function getVisitDate(): ?\DateTimeInterface { return $this->visitDate; } public function setVisitDate(\DateTimeInterface $visitDate): self { $this->visitDate = $visitDate; return $this; } public function getTicketNumber(): ?int { return $this->ticketNumber; } public function setTicketNumber(?int $ticketNumber): self { $this->ticketNumber = $ticketNumber; return $this; } public function getComment(): ?string { return $this->comment; } public function setComment(?string $comment): self { $this->comment = $comment; return $this; } /** * @return Collection<int, Images> */ public function getImages(): Collection { return $this->images; } public function addImage(Images $image): self { if (!$this->images->contains($image)) { $this->images->add($image); $image->setRetirage($this); } return $this; } public function removeImage(Images $image): self { if ($this->images->removeElement($image)) { // set the owning side to null (unless already changed) if ($image->getRetirage() === $this) { $image->setRetirage(null); } } return $this; } public function getCreationDate(): ?\DateTimeInterface { return $this->creationDate; } public function setCreationDate(\DateTimeInterface $creationDate): self { $this->creationDate = $creationDate; return $this; } public function getCity(): ?string { return $this->city; } public function setCity(?string $city): self { $this->city = $city; return $this; } public function getPostalCode(): ?string { return $this->postalCode; } public function setPostalCode(?string $postalCode): self { $this->postalCode = $postalCode; return $this; } public function isIsDone(): ?bool { return $this->isDone; } public function setIsDone(?bool $isDone): self { $this->isDone = $isDone; return $this; } public function getParc(): ?int { return $this->parc; } public function setParc(?int $parc): self { $this->parc = $parc; return $this; }}