<?php
namespace App\Entity;
use App\Repository\ProductImageRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ProductImageRepository::class)
*/
class ProductImage
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $productId;
/**
* @ORM\Column(type="integer")
*/
private $variationId;
/**
* @ORM\Column(type="string", length=255)
*/
private $image;
/**
* @ORM\Column(type="string", length=255)
*/
private $imageType;
/**
* @ORM\Column(type="integer")
*/
private $weight;
/**
* @ORM\Column(type="datetime")
*/
private $created;
/**
* @ORM\Column(type="boolean")
*/
private $status;
public function getId(): ?int
{
return $this->id;
}
public function getProductId(): ?int
{
return $this->productId;
}
public function setProductId(int $productId): self
{
$this->productId = $productId;
return $this;
}
public function getVariationId(): ?int
{
return $this->variationId;
}
public function setVariationId(int $variationId): self
{
$this->variationId = $variationId;
return $this;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(string $image): self
{
$this->image = $image;
return $this;
}
public function getImageType(): ?string
{
return $this->imageType;
}
public function setImageType(string $imageType): self
{
$this->imageType = $imageType;
return $this;
}
public function getWeight(): ?int
{
return $this->weight;
}
public function setWeight(int $weight): self
{
$this->weight = $weight;
return $this;
}
public function getCreated(): ?\DateTimeInterface
{
return $this->created;
}
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getStatus(): ?bool
{
return $this->status;
}
public function setStatus(bool $status): self
{
$this->status = $status;
return $this;
}
}