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.     /**
  101.      * @return Product
  102.      */
  103.     public function getProduct(): Product
  104.     {
  105.         return $this->product;
  106.     }
  107.     /**
  108.      * @param Product $product
  109.      *
  110.      * @return ProductImage
  111.      */
  112.     public function setProduct(Product $product): ProductImage
  113.     {
  114.         $this->product $product;
  115.         return $this;
  116.     }
  117.     /**
  118.      * @return int
  119.      */
  120.     public function getPosition(): int
  121.     {
  122.         return $this->position;
  123.     }
  124.     /**
  125.      * @param int $position
  126.      *
  127.      * @return ProductImage
  128.      */
  129.     public function setPosition(int $position): ProductImage
  130.     {
  131.         $this->position $position;
  132.         return $this;
  133.     }
  134.     /**
  135.      * @return bool
  136.      */
  137.     public function isCover(): bool
  138.     {
  139.         return $this->cover;
  140.     }
  141.     /**
  142.      * @param bool $cover
  143.      *
  144.      * @return ProductImage
  145.      */
  146.     public function setCover(bool $cover): ProductImage
  147.     {
  148.         $this->cover $cover;
  149.         return $this;
  150.     }
  151.     /**
  152.      * @return string|null
  153.      */
  154.     public function getName(): ?string
  155.     {
  156.         return $this->name;
  157.     }
  158.     /**
  159.      * @param string|null $name
  160.      *
  161.      * @return ProductImage
  162.      */
  163.     public function setName(?string $name): ProductImage
  164.     {
  165.         $this->name $name;
  166.         return $this;
  167.     }
  168.     /**
  169.      * @return bool|null
  170.      */
  171.     public function isGif(): ?bool
  172.     {
  173.         return $this->isGif;
  174.     }
  175.     /**
  176.      * @param bool|null $isGif
  177.      *
  178.      * @return ProductImage
  179.      */
  180.     public function setIsGif(?bool $isGif): ProductImage
  181.     {
  182.         $this->isGif $isGif;
  183.         return $this;
  184.     }
  185.     /**
  186.      * @return bool
  187.      */
  188.     public function isActive(): bool
  189.     {
  190.         return $this->active;
  191.     }
  192.     /**
  193.      * @param bool $active
  194.      *
  195.      * @return ProductImage
  196.      */
  197.     public function setActive(bool $active): ProductImage
  198.     {
  199.         $this->active $active;
  200.         return $this;
  201.     }
  202.     public function isBackgroundWhite(): ?bool
  203.     {
  204.         return $this->isBackgroundWhite;
  205.     }
  206.     public function setIsBackgroundWhite(?bool $isBackgroundWhite): ProductImage
  207.     {
  208.         $this->isBackgroundWhite $isBackgroundWhite;
  209.         return $this;
  210.     }
  211.     public function isBrand(): ?bool
  212.     {
  213.         return $this->isBrand;
  214.     }
  215.     public function setIsBrand(?bool $isBrand): ProductImage
  216.     {
  217.         $this->isBrand $isBrand;
  218.         return $this;
  219.     }
  220.     public function isEnergyEfficiency(): ?bool
  221.     {
  222.         return $this->isEnergyEfficiency;
  223.     }
  224.     public function setIsEnergyEfficiency(?bool $isEnergyEfficiency): ProductImage
  225.     {
  226.         $this->isEnergyEfficiency $isEnergyEfficiency;
  227.         return $this;
  228.     }
  229.     public function isHorizontal(): ?bool
  230.     {
  231.         return $this->isHorizontal;
  232.     }
  233.     public function setIsHorizontal(?bool $isHorizontal): ProductImage
  234.     {
  235.         $this->isHorizontal $isHorizontal;
  236.         return $this;
  237.     }
  238.     public function isIcon(): ?bool
  239.     {
  240.         return $this->isIcon;
  241.     }
  242.     public function setIsIcon(?bool $isIcon): ProductImage
  243.     {
  244.         $this->isIcon $isIcon;
  245.         return $this;
  246.     }
  247.     public function isLogo(): ?bool
  248.     {
  249.         return $this->isLogo;
  250.     }
  251.     public function setIsLogo(?bool $isLogo): ProductImage
  252.     {
  253.         $this->isLogo $isLogo;
  254.         return $this;
  255.     }
  256.     public function isMarketingPhoto(): ?bool
  257.     {
  258.         return $this->isMarketingPhoto;
  259.     }
  260.     public function setIsMarketingPhoto(?bool $isMarketingPhoto): ProductImage
  261.     {
  262.         $this->isMarketingPhoto $isMarketingPhoto;
  263.         return $this;
  264.     }
  265.     public function isPackagingPhoto(): ?bool
  266.     {
  267.         return $this->isPackagingPhoto;
  268.     }
  269.     public function setIsPackagingPhoto(?bool $isPackagingPhoto): ProductImage
  270.     {
  271.         $this->isPackagingPhoto $isPackagingPhoto;
  272.         return $this;
  273.     }
  274.     public function getHasMeasures(): ?bool
  275.     {
  276.         return $this->hasMeasures;
  277.     }
  278.     public function setHasMeasures(?bool $hasMeasures): ProductImage
  279.     {
  280.         $this->hasMeasures $hasMeasures;
  281.         return $this;
  282.     }
  283.     public function isGpsrLabel(): bool
  284.     {
  285.         return $this->gpsrLabel;
  286.     }
  287.     public function setGpsrLabel(bool $gpsrLabel): ProductImage
  288.     {
  289.         $this->gpsrLabel $gpsrLabel;
  290.         return $this;
  291.     }
  292.     public function isGpsrWarning(): bool
  293.     {
  294.         return $this->gpsrWarning;
  295.     }
  296.     public function setGpsrWarning(bool $gpsrWarning): ProductImage
  297.     {
  298.         $this->gpsrWarning $gpsrWarning;
  299.         return $this;
  300.     }
  301. }