<?phpnamespace App\Entity;use App\Repository\ProductWarrantyRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ProductWarrantyRepository::class)]class ProductWarranty{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private ?int $id = null; #[ORM\ManyToOne(inversedBy: 'productWarranties')] private ?ProjectProducts $projectProduct = null; #[ORM\ManyToOne] private ?Projects $project = null; #[ORM\ManyToOne] private ?Customers $customer = null; #[ORM\Column(type: 'datetime', nullable: true)] private ?\DateTimeInterface $createdAt = null; #[ORM\Column(type: Types::DATE_MUTABLE)] private ?\DateTimeInterface $startDate = null; #[ORM\Column(type: Types::DATE_MUTABLE)] private ?\DateTimeInterface $endDate = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $comment = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $description = null; public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): static { if($createdAt == null) { $createdAt = new \DateTime(); } $this->createdAt = $createdAt; return $this; } public function getProjectProduct(): ?ProjectProducts { return $this->projectProduct; } public function setProjectProduct(?ProjectProducts $projectProduct): static { $this->projectProduct = $projectProduct; return $this; } public function getProject(): ?Projects { return $this->project; } public function setProject(?Projects $project): static { $this->project = $project; return $this; } public function getCustomer(): ?Customers { return $this->customer; } public function setCustomer(?Customers $customer): static { $this->customer = $customer; return $this; } public function getStartDate(): ?\DateTimeInterface { return $this->startDate; } public function setStartDate(\DateTimeInterface $startDate): static { $this->startDate = $startDate; return $this; } public function getEndDate(): ?\DateTimeInterface { return $this->endDate; } public function setEndDate(\DateTimeInterface $endDate): static { $this->endDate = $endDate; return $this; } public function getComment(): ?string { return $this->comment; } public function setComment(?string $comment): static { $this->comment = $comment; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): static { $this->description = $description; return $this; }}