Files
symfony-flex-recipes-contrib/msgphp/eav-bundle/0.2/src/Entity/Eav/AttributeValue.php
T

29 lines
628 B
PHP

<?php
namespace App\Entity\Eav;
use Doctrine\ORM\Mapping as ORM;
use MsgPhp\Eav\AttributeValueIdInterface;
use MsgPhp\Eav\Entity\AttributeValue as BaseAttributeValue;
/**
* @ORM\Entity()
*/
class AttributeValue extends BaseAttributeValue
{
/** @ORM\Id() @ORM\GeneratedValue() @ORM\Column(type="msgphp_attribute_value_id") */
private $id;
public function __construct(AttributeValueIdInterface $id, Attribute $attribute, $value)
{
parent::__construct($attribute, $value);
$this->id = $id;
}
public function getId(): AttributeValueIdInterface
{
return $this->id;
}
}