src/Entity/ProductImages.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductImagesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: ProductImagesRepository::class)]
  6. class ProductImages
  7. {
  8. #[ORM\Id]
  9. #[ORM\GeneratedValue]
  10. #[ORM\Column(type: 'integer')]
  11. private $id;
  12. #[ORM\Column(type: 'string', length: 255)]
  13. private $image;
  14. #[ORM\ManyToOne(targetEntity: Product::class, inversedBy: 'productImages')]
  15. private $product;
  16. #[ORM\Column(type: 'string', length: 255, nullable: true)]
  17. private $legendeImage;
  18. public function getId(): ?int
  19. {
  20. return $this->id;
  21. }
  22. public function getImage(): ?string
  23. {
  24. return $this->image;
  25. }
  26. public function setImage(string $image): self
  27. {
  28. $this->image = $image;
  29. return $this;
  30. }
  31. public function getProduct(): ?Product
  32. {
  33. return $this->product;
  34. }
  35. public function setProduct(?Product $product): self
  36. {
  37. $this->product = $product;
  38. return $this;
  39. }
  40. public function getLegendeImage(): ?string
  41. {
  42. return $this->legendeImage;
  43. }
  44. public function setLegendeImage(?string $legendeImage): self
  45. {
  46. $this->legendeImage = $legendeImage;
  47. return $this;
  48. }
  49. }