<?phpnamespace App\Entity;use App\Repository\TransfersRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=TransfersRepository::class) * @ORM\HasLifecycleCallbacks() */class Transfers{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="date") */ private $transferDate; /** * @ORM\Column(type="datetime", nullable=true) */ private $receptionDate; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; /** * @ORM\ManyToOne(targetEntity=Car::class) * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") */ private $car; /** * @ORM\ManyToOne(targetEntity=Destinations::class, inversedBy="transfers") * @ORM\JoinColumn(nullable=false) */ private $destination; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $description; public function getId(): ?int { return $this->id; } public function getDestination(): ?Destinations { return $this->destination; } public function setDestination(?Destinations $destination): self { $this->destination = $destination; return $this; } public function getTransferDate(): ?\DateTimeInterface { return $this->transferDate; } public function setTransferDate(\DateTimeInterface $transferDate): self { $this->transferDate = $transferDate; return $this; } public function getReceptionDate(): ?\DateTimeInterface { return $this->receptionDate; } public function setReceptionDate(\DateTimeInterface $receptionDate): self { $this->receptionDate = $receptionDate; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } /** * @ORM\PrePersist */ public function setCreatedAt(): self { $this->createdAt = new \DateTime(); return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } /** * @ORM\PreUpdate */ public function setUpdatedAt(): self { $this->updatedAt = new \DateTime(); return $this; } public function getCar(): ?Car { return $this->car; } public function setCar(?Car $car): self { $this->car = $car; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; }}