src/Entity/System/AttributeGroup.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * AttributeGroup
  8.  *
  9.  * @ORM\Table(name="ps_attribute_group")
  10.  *
  11.  * @ORM\Entity(repositoryClass="App\Repository\System\AttributeGroupRepository")
  12.  */
  13. class AttributeGroup
  14. {
  15.     /**
  16.      * @var int
  17.      *
  18.      * @ORM\Column(name="id_attribute_group", type="integer")
  19.      *
  20.      * @ORM\Id
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var AttributeGroupLang[]|ArrayCollection<int, AttributeGroupLang>
  25.      *
  26.      * @ORM\OneToMany(targetEntity="App\Entity\System\AttributeGroupLang", mappedBy="attributeGroup", cascade={"persist"})
  27.      */
  28.     private $attributeGroupLangs;
  29.     /**
  30.      * @var Attribute[]|ArrayCollection<int, Attribute>
  31.      *
  32.      * @ORM\OneToMany(targetEntity="App\Entity\System\Attribute", mappedBy="attributeGroup")
  33.      */
  34.     private $attributes;
  35.     /**
  36.      * @var \DateTime
  37.      *
  38.      * @ORM\Column(type="datetime")
  39.      */
  40.     private $dateAdd;
  41.     /**
  42.      * @var \DateTime
  43.      *
  44.      * @ORM\Column(type="datetime")
  45.      */
  46.     private $dateUpd;
  47.     public function getId(): int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function setId(int $id): AttributeGroup
  52.     {
  53.         $this->id $id;
  54.         return $this;
  55.     }
  56.     /**
  57.      * @return AttributeGroupLang[]|ArrayCollection<int, AttributeGroupLang>
  58.      */
  59.     public function getAttributeGroupLangs()
  60.     {
  61.         return $this->attributeGroupLangs;
  62.     }
  63.     /**
  64.      * @param Collection<string, AttributeGroupLang> $attributeGroupLangs
  65.      */
  66.     public function setAttributeGroupLangs(Collection $attributeGroupLangs): AttributeGroup
  67.     {
  68.         $this->attributeGroupLangs $attributeGroupLangs;
  69.         return $this;
  70.     }
  71.     /**
  72.      * @return Attribute[]|ArrayCollection<int, Attribute>
  73.      */
  74.     public function getAttributes()
  75.     {
  76.         return $this->attributes;
  77.     }
  78.     /**
  79.      * @param Attribute[]|ArrayCollection<int, Attribute> $attributes
  80.      */
  81.     public function setAttributes($attributes): AttributeGroup
  82.     {
  83.         $this->attributes $attributes;
  84.         return $this;
  85.     }
  86.     public function getDateAdd(): \DateTime
  87.     {
  88.         return $this->dateAdd;
  89.     }
  90.     public function setDateAdd(\DateTime $dateAdd): AttributeGroup
  91.     {
  92.         $this->dateAdd $dateAdd;
  93.         return $this;
  94.     }
  95.     public function getDateUpd(): \DateTime
  96.     {
  97.         return $this->dateUpd;
  98.     }
  99.     public function setDateUpd(\DateTime $dateUpd): AttributeGroup
  100.     {
  101.         $this->dateUpd $dateUpd;
  102.         return $this;
  103.     }
  104. }