src/Entity/ProductOption.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use App\Repository\ProductOptionRepository;
  7. use Symfony\Component\Serializer\Annotation\Groups;
  8. /**
  9.  * @ORM\Entity(repositoryClass=ProductOptionRepository::class)
  10.  */
  11. class ProductOption
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      * @Groups("post:read")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="productOptions")
  22.      * @ORM\JoinColumn(nullable=false)
  23.      */
  24.     private $product;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      * @Groups("post:read")
  28.      */
  29.     private $name;
  30.     /**
  31.      * @ORM\Column(type="float", nullable=true)
  32.      * @Groups("post:read")
  33.      */
  34.     private $price;
  35.     /**
  36.      * @ORM\Column(type="string", length=255, nullable=true)
  37.      * @Groups("post:read")
  38.      */
  39.     private $image1;
  40.     /**
  41.      * @ORM\Column(type="string", length=255, nullable=true)
  42.      * @Groups("post:read")
  43.      */
  44.     private $image2;
  45.     /**
  46.      * @ORM\Column(type="array", nullable=true)
  47.      * @Groups("post:read")
  48.      */
  49.     private $colorsOption = [];
  50.     /**
  51.      * @ORM\Column(type="array", nullable=true)
  52.      * @Groups("post:read")
  53.      */
  54.     private $format = [];
  55.     /**
  56.      * @ORM\Column(type="array", nullable=true)
  57.      * @Groups("post:read")
  58.      */
  59.     private $finition = [];
  60.     /**
  61.      * @ORM\Column(type="array", nullable=true)
  62.      * @Groups("post:read")
  63.      */
  64.     private $papier = [];
  65.     /**
  66.      * @ORM\Column(type="array", nullable=true)
  67.      * @Groups("post:read")
  68.      */
  69.     private $quantite = [];
  70.     /**
  71.      * @ORM\Column(type="array", nullable=true)
  72.      * @Groups("post:read")
  73.      */
  74.     private $etiquette = [];
  75.     /**
  76.      * @ORM\Column(type="array", nullable=true)
  77.      * @Groups("post:read")
  78.      */
  79.     private $ruban = [];
  80.     /**
  81.      * @ORM\Column(type="integer", nullable=true)
  82.      * @Groups("post:read")
  83.      */
  84.     private $pQte;
  85.     /**
  86.      * @ORM\Column(type="array", nullable=true)
  87.      * @Groups("post:read")
  88.      */
  89.     private $valeurOption = [];
  90.     /**
  91.      * @ORM\Column(type="array", nullable=true)
  92.      * @Groups("post:read")
  93.      */
  94.     private $qteValeur = [];
  95.     /**
  96.      * @ORM\Column(type="array", nullable=true)
  97.      * @Groups("post:read")
  98.      */
  99.     private $prixValeur = [];
  100.     /**
  101.      * @ORM\Column(type="array", nullable=true)
  102.      * @Groups("post:read")
  103.      */
  104.     private $imageValeur = [];
  105.     /**
  106.      * @ORM\Column(type="boolean", nullable=true)
  107.      * @Groups("post:read")
  108.      */
  109.     private $isMultiple;
  110.     public function getId(): ?int
  111.     {
  112.         return $this->id;
  113.     }
  114.     public function getProduct(): ?Product
  115.     {
  116.         return $this->product;
  117.     }
  118.     public function setProduct(?Product $product): self
  119.     {
  120.         $this->product $product;
  121.         return $this;
  122.     }
  123.     public function getName(): ?string
  124.     {
  125.         return $this->name;
  126.     }
  127.     public function setName(?string $name): self
  128.     {
  129.         $this->name $name;
  130.         return $this;
  131.     }
  132.     public function getPrice(): ?float
  133.     {
  134.         return $this->price;
  135.     }
  136.     public function setPrice(?float $price): self
  137.     {
  138.         $this->price $price;
  139.         return $this;
  140.     }
  141.     public function getImage1()
  142.     {
  143.         return $this->image1;
  144.     }
  145.     public function setImage1($image1): self
  146.     {
  147.         $this->image1 $image1;
  148.         return $this;
  149.     }
  150.     public function getImage2()
  151.     {
  152.         return $this->image2;
  153.     }
  154.     public function setImage2($image2): self
  155.     {
  156.         $this->image2 $image2;
  157.         return $this;
  158.     }
  159.     public function getColorsOption(): ?array
  160.     {
  161.         return $this->colorsOption;
  162.     }
  163.     public function setColorsOption(?array $colorsOption): self
  164.     {
  165.         $this->colorsOption $colorsOption;
  166.         return $this;
  167.     }
  168.     public function getFormat(): ?array
  169.     {
  170.         return $this->format;
  171.     }
  172.     public function setFormat(?array $format): self
  173.     {
  174.         $this->format $format;
  175.         return $this;
  176.     }
  177.     public function getFinition(): ?array
  178.     {
  179.         return $this->finition;
  180.     }
  181.     public function setFinition(?array $finition): self
  182.     {
  183.         $this->finition $finition;
  184.         return $this;
  185.     }
  186.     public function getPapier(): ?array
  187.     {
  188.         return $this->papier;
  189.     }
  190.     public function setPapier(?array $papier): self
  191.     {
  192.         $this->papier $papier;
  193.         return $this;
  194.     }
  195.     public function getQuantite(): ?array
  196.     {
  197.         return $this->quantite;
  198.     }
  199.     public function setQuantite(?array $quantite): self
  200.     {
  201.         $this->quantite $quantite;
  202.         return $this;
  203.     }
  204.     public function getEtiquette(): ?array
  205.     {
  206.         return $this->etiquette;
  207.     }
  208.     public function setEtiquette(?array $etiquette): self
  209.     {
  210.         $this->etiquette $etiquette;
  211.         return $this;
  212.     }
  213.     public function getRuban(): ?array
  214.     {
  215.         return $this->ruban;
  216.     }
  217.     public function setRuban(?array $ruban): self
  218.     {
  219.         $this->ruban $ruban;
  220.         return $this;
  221.     }
  222.     public function getPQte(): ?int
  223.     {
  224.         return $this->pQte;
  225.     }
  226.     public function setPQte(?int $pQte): self
  227.     {
  228.         $this->pQte $pQte;
  229.         return $this;
  230.     }
  231.     public function getValeurOption(): ?array
  232.     {
  233.         return $this->valeurOption;
  234.     }
  235.     public function setValeurOption(?array $valeurOption): self
  236.     {
  237.         $this->valeurOption $valeurOption;
  238.         return $this;
  239.     }
  240.     public function getQteValeur(): ?array
  241.     {
  242.         return $this->qteValeur;
  243.     }
  244.     public function setQteValeur(?array $qteValeur): self
  245.     {
  246.         $this->qteValeur $qteValeur;
  247.         return $this;
  248.     }
  249.     public function getPrixValeur(): ?array
  250.     {
  251.         return $this->prixValeur;
  252.     }
  253.     public function setPrixValeur(?array $prixValeur): self
  254.     {
  255.         $this->prixValeur $prixValeur;
  256.         return $this;
  257.     }
  258.     public function getImageValeur(): ?array
  259.     {
  260.         return $this->imageValeur;
  261.     }
  262.     public function setImageValeur(?array $imageValeur): self
  263.     {
  264.         $this->imageValeur $imageValeur;
  265.         return $this;
  266.     }
  267.     public function getIsMultiple(): ?bool
  268.     {
  269.         return $this->isMultiple;
  270.     }
  271.     public function setIsMultiple(?bool $isMultiple): self
  272.     {
  273.         $this->isMultiple $isMultiple;
  274.         return $this;
  275.     }
  276. }