<?phpnamespace App\Entity;use App\Repository\EvolutionRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ ORM\Entity(repositoryClass: EvolutionRepository::class), ORM\Table(name: 'evolution'), ORM\HasLifecycleCallbacks,]class Evolution{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(type: Types::TEXT)] private ?string $description = null; #[ORM\Column(type: Types::TEXT)] private ?string $url = null; #[ORM\Column(type: Types::DATE_IMMUTABLE)] private \DateTimeInterface $created_at; #[ORM\Column(type: Types::DATE_IMMUTABLE)] private \DateTimeInterface $updated_at; #[ORM\ManyToOne(inversedBy: 'evolutions')] #[ORM\JoinTable(name: 'customer_information_id')] private ?CustomerInformation $customer_information = null; public function __construct() { $this->created_at = (new \DateTime())->setTime(0, 0, 0); $this->updated_at = (new \DateTime())->setTime(0, 0, 0); } public function getId(): ?int { return $this->id; } public function getDescription(): ?string { return $this->description; } public function setDescription(string $description): self { $this->description = $description; return $this; } public function getUrl(): ?string { return $this->url; } public function setUrl(string $url): self { $this->url = $url; return $this; } public function getCreated_at(): \DateTimeInterface { return $this->created_at; } public function getUpdated_at(): \DateTimeInterface { return $this->updated_at; } public function setUpdated_at(\DateTimeInterface $updated_at): self { $this->updated_at = $updated_at; return $this; } #[ORM\PreUpdate] public function preUpdate(): void { $this->updated_at = new \DateTime(); } public function getCustomerInformation(): ?CustomerInformation { return $this->customer_information; } public function setCustomerInformation(?CustomerInformation $customer_information): self { $this->customer_information = $customer_information; return $this; }}