mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-16 09:36:26 +03:00
25 lines
384 B
PHP
25 lines
384 B
PHP
<?php
|
|
|
|
namespace App\Entity\Eav;
|
|
|
|
use MsgPhp\Eav\AttributeIdInterface;
|
|
use MsgPhp\Eav\Entity\Attribute as BaseAttribute;
|
|
|
|
/**
|
|
* @final
|
|
*/
|
|
class Attribute extends BaseAttribute
|
|
{
|
|
private $id;
|
|
|
|
public function __construct(AttributeIdInterface $id)
|
|
{
|
|
$this->id = $id;
|
|
}
|
|
|
|
public function getId(): AttributeIdInterface
|
|
{
|
|
return $this->id;
|
|
}
|
|
}
|