<?php
namespace App\Entity\System;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* AttributeGroup
*
* @ORM\Table(name="ps_attribute_group")
*
* @ORM\Entity(repositoryClass="App\Repository\System\AttributeGroupRepository")
*/
class AttributeGroup
{
/**
* @var int
*
* @ORM\Column(name="id_attribute_group", type="integer")
*
* @ORM\Id
*/
private $id;
/**
* @var AttributeGroupLang[]|ArrayCollection<int, AttributeGroupLang>
*
* @ORM\OneToMany(targetEntity="App\Entity\System\AttributeGroupLang", mappedBy="attributeGroup", cascade={"persist"})
*/
private $attributeGroupLangs;
/**
* @var Attribute[]|ArrayCollection<int, Attribute>
*
* @ORM\OneToMany(targetEntity="App\Entity\System\Attribute", mappedBy="attributeGroup")
*/
private $attributes;
/**
* @var \DateTime
*
* @ORM\Column(type="datetime")
*/
private $dateAdd;
/**
* @var \DateTime
*
* @ORM\Column(type="datetime")
*/
private $dateUpd;
public function getId(): int
{
return $this->id;
}
public function setId(int $id): AttributeGroup
{
$this->id = $id;
return $this;
}
/**
* @return AttributeGroupLang[]|ArrayCollection<int, AttributeGroupLang>
*/
public function getAttributeGroupLangs()
{
return $this->attributeGroupLangs;
}
/**
* @param Collection<string, AttributeGroupLang> $attributeGroupLangs
*/
public function setAttributeGroupLangs(Collection $attributeGroupLangs): AttributeGroup
{
$this->attributeGroupLangs = $attributeGroupLangs;
return $this;
}
/**
* @return Attribute[]|ArrayCollection<int, Attribute>
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* @param Attribute[]|ArrayCollection<int, Attribute> $attributes
*/
public function setAttributes($attributes): AttributeGroup
{
$this->attributes = $attributes;
return $this;
}
public function getDateAdd(): \DateTime
{
return $this->dateAdd;
}
public function setDateAdd(\DateTime $dateAdd): AttributeGroup
{
$this->dateAdd = $dateAdd;
return $this;
}
public function getDateUpd(): \DateTime
{
return $this->dateUpd;
}
public function setDateUpd(\DateTime $dateUpd): AttributeGroup
{
$this->dateUpd = $dateUpd;
return $this;
}
}