src/Entity/ProductTracabilite.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductTracabiliteRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: ProductTracabiliteRepository::class)]
  6. class ProductTracabilite
  7. {
  8. #[ORM\Id]
  9. #[ORM\GeneratedValue]
  10. #[ORM\Column(type: 'integer')]
  11. private $id;
  12. #[ORM\Column(type: 'string', length: 255)]
  13. private $titre;
  14. #[ORM\Column(type: 'string', length: 255)]
  15. private $fichier;
  16. #[ORM\Column(type: 'integer')]
  17. private $statut;
  18. #[ORM\ManyToOne(targetEntity: Product::class, inversedBy: 'tracabilites')]
  19. #[ORM\JoinColumn(nullable: false)]
  20. private $product;
  21. #[ORM\Column(type: 'datetime', nullable: true)]
  22. private $dateAjout;
  23. public function getId(): ?int
  24. {
  25. return $this->id;
  26. }
  27. public function getTitre(): ?string
  28. {
  29. return $this->titre;
  30. }
  31. public function setTitre(string $titre): self
  32. {
  33. $this->titre = $titre;
  34. return $this;
  35. }
  36. public function getFichier(): ?string
  37. {
  38. return $this->fichier;
  39. }
  40. public function setFichier(string $fichier): self
  41. {
  42. $this->fichier = $fichier;
  43. return $this;
  44. }
  45. public function getStatut(): ?int
  46. {
  47. return $this->statut;
  48. }
  49. public function setStatut(int $statut): self
  50. {
  51. $this->statut = $statut;
  52. return $this;
  53. }
  54. public function getProduct(): ?Product
  55. {
  56. return $this->product;
  57. }
  58. public function setProduct(?Product $product): self
  59. {
  60. $this->product = $product;
  61. return $this;
  62. }
  63. public function getDateAjout(): ?\DateTimeInterface
  64. {
  65. return $this->dateAjout;
  66. }
  67. public function setDateAjout(?\DateTimeInterface $dateAjout): self
  68. {
  69. $this->dateAjout = $dateAjout;
  70. return $this;
  71. }
  72. }