<?php
namespace App\Entity;
use App\Repository\ProductImagesRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ProductImagesRepository::class)]
class ProductImages
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $image;
#[ORM\ManyToOne(targetEntity: Product::class, inversedBy: 'productImages')]
private $product;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $legendeImage;
public function getId(): ?int
{
return $this->id;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(string $image): self
{
$this->image = $image;
return $this;
}
public function getProduct(): ?Product
{
return $this->product;
}
public function setProduct(?Product $product): self
{
$this->product = $product;
return $this;
}
public function getLegendeImage(): ?string
{
return $this->legendeImage;
}
public function setLegendeImage(?string $legendeImage): self
{
$this->legendeImage = $legendeImage;
return $this;
}
}