src/Entity/System/ProductImage.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Product
  6.  *
  7.  * @ORM\Table(name="ps_image")
  8.  *
  9.  * @ORM\Entity(repositoryClass="App\Repository\System\ProductImageRepository")
  10.  */
  11. class ProductImage
  12. {
  13.     /**
  14.      * @ORM\Column(name="id_image", type="integer")
  15.      *
  16.      * @ORM\Id
  17.      *
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private int $id;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity="Product", inversedBy="productImages")
  23.      *
  24.      * @ORM\JoinColumn(name="id_product", referencedColumnName="id_product")
  25.      */
  26.     private Product $product;
  27.     /**
  28.      * @ORM\Column(name="position", type="integer")
  29.      */
  30.     private int $position;
  31.     /**
  32.      * @ORM\Column(name="cover", type="boolean")
  33.      */
  34.     private bool $cover;
  35.     /**
  36.      * @var string|null
  37.      *
  38.      * @ORM\Column(name="name", type="string", nullable=true)
  39.      */
  40.     private ?string $name;
  41.     /**
  42.      * @ORM\Column(name="is_gif", type="boolean")
  43.      */
  44.     private ?bool $isGif;
  45.     /**
  46.      * @ORM\Column(name="active", type="boolean")
  47.      */
  48.     private bool $active;
  49.     /**
  50.      * @ORM\Column(name="is_background_white", type="boolean", nullable=true)
  51.      */
  52.     private ?bool $isBackgroundWhite;
  53.     /**
  54.      * @ORM\Column(name="is_brand", type="boolean", nullable=true)
  55.      */
  56.     private ?bool $isBrand;
  57.     /**
  58.      * @ORM\Column(name="is_energy_efficiency", type="boolean", nullable=true)
  59.      */
  60.     private ?bool $isEnergyEfficiency;
  61.     /**
  62.      * @ORM\Column(name="is_horizontal", type="boolean", nullable=true)
  63.      */
  64.     private ?bool $isHorizontal;
  65.     /**
  66.      * @ORM\Column(name="is_icon", type="boolean", nullable=true)
  67.      */
  68.     private ?bool $isIcon;
  69.     /**
  70.      * @ORM\Column(name="is_logo", type="boolean", nullable=true)
  71.      */
  72.     private ?bool $isLogo;
  73.     /**
  74.      * @ORM\Column(name="is_marketing_photo", type="boolean", nullable=true)
  75.      */
  76.     private ?bool $isMarketingPhoto;
  77.     /**
  78.      * @ORM\Column(name="is_packaging_photo", type="boolean", nullable=true)
  79.      */
  80.     private ?bool $isPackagingPhoto;
  81.     /**
  82.      * @ORM\Column(name="has_measures", type="boolean", nullable=true)
  83.      */
  84.     private ?bool $hasMeasures;
  85.     /**
  86.      * @ORM\Column(name="gpsr_label", type="boolean", options={"default"=0})
  87.      */
  88.     private bool $gpsrLabel;
  89.     /**
  90.      * @ORM\Column(name="gpsr_warning", type="boolean", options={"default"=0})
  91.      */
  92.     private bool $gpsrWarning;
  93.     /**
  94.      * @return int
  95.      */
  96.     public function getId(): int
  97.     {
  98.         return $this->id;
  99.     }
  100.     public function getProduct(): Product
  101.     {
  102.         return $this->product;
  103.     }
  104.     /**
  105.      * @param Product $product
  106.      *
  107.      * @return ProductImage
  108.      */
  109.     public function setProduct(Product $product): ProductImage
  110.     {
  111.         $this->product $product;
  112.         return $this;
  113.     }
  114.     /**
  115.      * @return int
  116.      */
  117.     public function getPosition(): int
  118.     {
  119.         return $this->position;
  120.     }
  121.     /**
  122.      * @param int $position
  123.      *
  124.      * @return ProductImage
  125.      */
  126.     public function setPosition(int $position): ProductImage
  127.     {
  128.         $this->position $position;
  129.         return $this;
  130.     }
  131.     /**
  132.      * @return bool
  133.      */
  134.     public function isCover(): bool
  135.     {
  136.         return $this->cover;
  137.     }
  138.     /**
  139.      * @param bool $cover
  140.      *
  141.      * @return ProductImage
  142.      */
  143.     public function setCover(bool $cover): ProductImage
  144.     {
  145.         $this->cover $cover;
  146.         return $this;
  147.     }
  148.     /**
  149.      * @return string|null
  150.      */
  151.     public function getName(): ?string
  152.     {
  153.         return $this->name;
  154.     }
  155.     /**
  156.      * @param string|null $name
  157.      *
  158.      * @return ProductImage
  159.      */
  160.     public function setName(?string $name): ProductImage
  161.     {
  162.         $this->name $name;
  163.         return $this;
  164.     }
  165.     /**
  166.      * @return bool|null
  167.      */
  168.     public function isGif(): ?bool
  169.     {
  170.         return $this->isGif;
  171.     }
  172.     /**
  173.      * @param bool|null $isGif
  174.      *
  175.      * @return ProductImage
  176.      */
  177.     public function setIsGif(?bool $isGif): ProductImage
  178.     {
  179.         $this->isGif $isGif;
  180.         return $this;
  181.     }
  182.     /**
  183.      * @return bool
  184.      */
  185.     public function isActive(): bool
  186.     {
  187.         return $this->active;
  188.     }
  189.     /**
  190.      * @param bool $active
  191.      *
  192.      * @return ProductImage
  193.      */
  194.     public function setActive(bool $active): ProductImage
  195.     {
  196.         $this->active $active;
  197.         return $this;
  198.     }
  199.     public function isBackgroundWhite(): ?bool
  200.     {
  201.         return $this->isBackgroundWhite;
  202.     }
  203.     public function setIsBackgroundWhite(?bool $isBackgroundWhite): ProductImage
  204.     {
  205.         $this->isBackgroundWhite $isBackgroundWhite;
  206.         return $this;
  207.     }
  208.     public function isBrand(): ?bool
  209.     {
  210.         return $this->isBrand;
  211.     }
  212.     public function setIsBrand(?bool $isBrand): ProductImage
  213.     {
  214.         $this->isBrand $isBrand;
  215.         return $this;
  216.     }
  217.     public function isEnergyEfficiency(): ?bool
  218.     {
  219.         return $this->isEnergyEfficiency;
  220.     }
  221.     public function setIsEnergyEfficiency(?bool $isEnergyEfficiency): ProductImage
  222.     {
  223.         $this->isEnergyEfficiency $isEnergyEfficiency;
  224.         return $this;
  225.     }
  226.     public function isHorizontal(): ?bool
  227.     {
  228.         return $this->isHorizontal;
  229.     }
  230.     public function setIsHorizontal(?bool $isHorizontal): ProductImage
  231.     {
  232.         $this->isHorizontal $isHorizontal;
  233.         return $this;
  234.     }
  235.     public function isIcon(): ?bool
  236.     {
  237.         return $this->isIcon;
  238.     }
  239.     public function setIsIcon(?bool $isIcon): ProductImage
  240.     {
  241.         $this->isIcon $isIcon;
  242.         return $this;
  243.     }
  244.     public function isLogo(): ?bool
  245.     {
  246.         return $this->isLogo;
  247.     }
  248.     public function setIsLogo(?bool $isLogo): ProductImage
  249.     {
  250.         $this->isLogo $isLogo;
  251.         return $this;
  252.     }
  253.     public function isMarketingPhoto(): ?bool
  254.     {
  255.         return $this->isMarketingPhoto;
  256.     }
  257.     public function setIsMarketingPhoto(?bool $isMarketingPhoto): ProductImage
  258.     {
  259.         $this->isMarketingPhoto $isMarketingPhoto;
  260.         return $this;
  261.     }
  262.     public function isPackagingPhoto(): ?bool
  263.     {
  264.         return $this->isPackagingPhoto;
  265.     }
  266.     public function setIsPackagingPhoto(?bool $isPackagingPhoto): ProductImage
  267.     {
  268.         $this->isPackagingPhoto $isPackagingPhoto;
  269.         return $this;
  270.     }
  271.     public function getHasMeasures(): ?bool
  272.     {
  273.         return $this->hasMeasures;
  274.     }
  275.     public function setHasMeasures(?bool $hasMeasures): ProductImage
  276.     {
  277.         $this->hasMeasures $hasMeasures;
  278.         return $this;
  279.     }
  280.     public function isGpsrLabel(): bool
  281.     {
  282.         return $this->gpsrLabel;
  283.     }
  284.     public function setGpsrLabel(bool $gpsrLabel): ProductImage
  285.     {
  286.         $this->gpsrLabel $gpsrLabel;
  287.         return $this;
  288.     }
  289.     public function isGpsrWarning(): bool
  290.     {
  291.         return $this->gpsrWarning;
  292.     }
  293.     public function setGpsrWarning(bool $gpsrWarning): ProductImage
  294.     {
  295.         $this->gpsrWarning $gpsrWarning;
  296.         return $this;
  297.     }
  298. }