mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-14 08:36:34 +03:00
27 lines
507 B
PHP
27 lines
507 B
PHP
<?php
|
|
|
|
namespace App\Entity\Eav;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use MsgPhp\Eav\AttributeIdInterface;
|
|
use MsgPhp\Eav\Entity\Attribute as BaseAttribute;
|
|
|
|
/**
|
|
* @ORM\Entity()
|
|
*/
|
|
class Attribute extends BaseAttribute
|
|
{
|
|
/** @ORM\Id() @ORM\GeneratedValue() @ORM\Column(type="msgphp_attribute_id") */
|
|
private $id;
|
|
|
|
public function __construct(AttributeIdInterface $id)
|
|
{
|
|
$this->id = $id;
|
|
}
|
|
|
|
public function getId(): AttributeIdInterface
|
|
{
|
|
return $this->id;
|
|
}
|
|
}
|