src/Entity/ProductWarranty.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductWarrantyRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClass: ProductWarrantyRepository::class)]
  7. class ProductWarranty
  8. {
  9. #[ORM\Id]
  10. #[ORM\GeneratedValue]
  11. #[ORM\Column(type: 'integer')]
  12. private ?int $id = null;
  13. #[ORM\ManyToOne(inversedBy: 'productWarranties')]
  14. private ?ProjectProducts $projectProduct = null;
  15. #[ORM\Column(type: Types::DATE_MUTABLE)]
  16. private ?\DateTimeInterface $startDate = null;
  17. #[ORM\Column(type: Types::DATE_MUTABLE)]
  18. private ?\DateTimeInterface $endDate = null;
  19. #[ORM\Column(type: Types::TEXT, nullable: true)]
  20. private ?string $comment = null;
  21. #[ORM\Column(type: Types::TEXT, nullable: true)]
  22. private ?string $description = null;
  23. public function getId(): ?int
  24. {
  25. return $this->id;
  26. }
  27. public function getProjectProduct(): ?ProjectProducts
  28. {
  29. return $this->projectProduct;
  30. }
  31. public function setProjectProduct(?ProjectProducts $projectProduct): static
  32. {
  33. $this->projectProduct = $projectProduct;
  34. return $this;
  35. }
  36. public function getStartDate(): ?\DateTimeInterface
  37. {
  38. return $this->startDate;
  39. }
  40. public function setStartDate(\DateTimeInterface $startDate): static
  41. {
  42. $this->startDate = $startDate;
  43. return $this;
  44. }
  45. public function getEndDate(): ?\DateTimeInterface
  46. {
  47. return $this->endDate;
  48. }
  49. public function setEndDate(\DateTimeInterface $endDate): static
  50. {
  51. $this->endDate = $endDate;
  52. return $this;
  53. }
  54. public function getComment(): ?string
  55. {
  56. return $this->comment;
  57. }
  58. public function setComment(?string $comment): static
  59. {
  60. $this->comment = $comment;
  61. return $this;
  62. }
  63. public function getDescription(): ?string
  64. {
  65. return $this->description;
  66. }
  67. public function setDescription(?string $description): static
  68. {
  69. $this->description = $description;
  70. return $this;
  71. }
  72. }