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

29 lines
602 B
PHP

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