<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* Product
*
* @ORM\Table(name="ps_image")
*
* @ORM\Entity(repositoryClass="App\Repository\System\ProductImageRepository")
*/
class ProductImage
{
/**
* @ORM\Column(name="id_image", type="integer")
*
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*/
private int $id;
/**
* @ORM\ManyToOne(targetEntity="Product", inversedBy="productImages")
*
* @ORM\JoinColumn(name="id_product", referencedColumnName="id_product")
*/
private Product $product;
/**
* @ORM\Column(name="position", type="integer")
*/
private int $position;
/**
* @ORM\Column(name="cover", type="boolean")
*/
private bool $cover;
/**
* @var string|null
*
* @ORM\Column(name="name", type="string", nullable=true)
*/
private ?string $name;
/**
* @ORM\Column(name="is_gif", type="boolean")
*/
private ?bool $isGif;
/**
* @ORM\Column(name="active", type="boolean")
*/
private bool $active;
/**
* @ORM\Column(name="is_background_white", type="boolean", nullable=true)
*/
private ?bool $isBackgroundWhite;
/**
* @ORM\Column(name="is_brand", type="boolean", nullable=true)
*/
private ?bool $isBrand;
/**
* @ORM\Column(name="is_energy_efficiency", type="boolean", nullable=true)
*/
private ?bool $isEnergyEfficiency;
/**
* @ORM\Column(name="is_horizontal", type="boolean", nullable=true)
*/
private ?bool $isHorizontal;
/**
* @ORM\Column(name="is_icon", type="boolean", nullable=true)
*/
private ?bool $isIcon;
/**
* @ORM\Column(name="is_logo", type="boolean", nullable=true)
*/
private ?bool $isLogo;
/**
* @ORM\Column(name="is_marketing_photo", type="boolean", nullable=true)
*/
private ?bool $isMarketingPhoto;
/**
* @ORM\Column(name="is_packaging_photo", type="boolean", nullable=true)
*/
private ?bool $isPackagingPhoto;
/**
* @ORM\Column(name="has_measures", type="boolean", nullable=true)
*/
private ?bool $hasMeasures;
/**
* @ORM\Column(name="gpsr_label", type="boolean", options={"default"=0})
*/
private bool $gpsrLabel;
/**
* @ORM\Column(name="gpsr_warning", type="boolean", options={"default"=0})
*/
private bool $gpsrWarning;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @return Product
*/
public function getProduct(): Product
{
return $this->product;
}
/**
* @param Product $product
*
* @return ProductImage
*/
public function setProduct(Product $product): ProductImage
{
$this->product = $product;
return $this;
}
/**
* @return int
*/
public function getPosition(): int
{
return $this->position;
}
/**
* @param int $position
*
* @return ProductImage
*/
public function setPosition(int $position): ProductImage
{
$this->position = $position;
return $this;
}
/**
* @return bool
*/
public function isCover(): bool
{
return $this->cover;
}
/**
* @param bool $cover
*
* @return ProductImage
*/
public function setCover(bool $cover): ProductImage
{
$this->cover = $cover;
return $this;
}
/**
* @return string|null
*/
public function getName(): ?string
{
return $this->name;
}
/**
* @param string|null $name
*
* @return ProductImage
*/
public function setName(?string $name): ProductImage
{
$this->name = $name;
return $this;
}
/**
* @return bool|null
*/
public function isGif(): ?bool
{
return $this->isGif;
}
/**
* @param bool|null $isGif
*
* @return ProductImage
*/
public function setIsGif(?bool $isGif): ProductImage
{
$this->isGif = $isGif;
return $this;
}
/**
* @return bool
*/
public function isActive(): bool
{
return $this->active;
}
/**
* @param bool $active
*
* @return ProductImage
*/
public function setActive(bool $active): ProductImage
{
$this->active = $active;
return $this;
}
public function isBackgroundWhite(): ?bool
{
return $this->isBackgroundWhite;
}
public function setIsBackgroundWhite(?bool $isBackgroundWhite): ProductImage
{
$this->isBackgroundWhite = $isBackgroundWhite;
return $this;
}
public function isBrand(): ?bool
{
return $this->isBrand;
}
public function setIsBrand(?bool $isBrand): ProductImage
{
$this->isBrand = $isBrand;
return $this;
}
public function isEnergyEfficiency(): ?bool
{
return $this->isEnergyEfficiency;
}
public function setIsEnergyEfficiency(?bool $isEnergyEfficiency): ProductImage
{
$this->isEnergyEfficiency = $isEnergyEfficiency;
return $this;
}
public function isHorizontal(): ?bool
{
return $this->isHorizontal;
}
public function setIsHorizontal(?bool $isHorizontal): ProductImage
{
$this->isHorizontal = $isHorizontal;
return $this;
}
public function isIcon(): ?bool
{
return $this->isIcon;
}
public function setIsIcon(?bool $isIcon): ProductImage
{
$this->isIcon = $isIcon;
return $this;
}
public function isLogo(): ?bool
{
return $this->isLogo;
}
public function setIsLogo(?bool $isLogo): ProductImage
{
$this->isLogo = $isLogo;
return $this;
}
public function isMarketingPhoto(): ?bool
{
return $this->isMarketingPhoto;
}
public function setIsMarketingPhoto(?bool $isMarketingPhoto): ProductImage
{
$this->isMarketingPhoto = $isMarketingPhoto;
return $this;
}
public function isPackagingPhoto(): ?bool
{
return $this->isPackagingPhoto;
}
public function setIsPackagingPhoto(?bool $isPackagingPhoto): ProductImage
{
$this->isPackagingPhoto = $isPackagingPhoto;
return $this;
}
public function getHasMeasures(): ?bool
{
return $this->hasMeasures;
}
public function setHasMeasures(?bool $hasMeasures): ProductImage
{
$this->hasMeasures = $hasMeasures;
return $this;
}
public function isGpsrLabel(): bool
{
return $this->gpsrLabel;
}
public function setGpsrLabel(bool $gpsrLabel): ProductImage
{
$this->gpsrLabel = $gpsrLabel;
return $this;
}
public function isGpsrWarning(): bool
{
return $this->gpsrWarning;
}
public function setGpsrWarning(bool $gpsrWarning): ProductImage
{
$this->gpsrWarning = $gpsrWarning;
return $this;
}
}