mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 15:46:52 +03:00
27 lines
499 B
PHP
27 lines
499 B
PHP
<?php
|
|
|
|
namespace App\Entity\Eav;
|
|
|
|
use MsgPhp\Eav\AttributeValueIdInterface;
|
|
use MsgPhp\Eav\Entity\AttributeValue as BaseAttributeValue;
|
|
|
|
/**
|
|
* @final
|
|
*/
|
|
class AttributeValue extends BaseAttributeValue
|
|
{
|
|
private $id;
|
|
|
|
public function __construct(AttributeValueIdInterface $id, Attribute $attribute, $value)
|
|
{
|
|
parent::__construct($attribute, $value);
|
|
|
|
$this->id = $id;
|
|
}
|
|
|
|
public function getId(): AttributeValueIdInterface
|
|
{
|
|
return $this->id;
|
|
}
|
|
}
|