mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
Merge pull request #308
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Eav;
|
||||
|
||||
use MsgPhp\Eav\Entity\Attribute as BaseAttribute;
|
||||
|
||||
/**
|
||||
* @final
|
||||
*/
|
||||
class Attribute extends BaseAttribute
|
||||
{
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Eav;
|
||||
|
||||
use MsgPhp\Eav\Entity\AttributeValue as BaseAttributeValue;
|
||||
|
||||
/**
|
||||
* @final
|
||||
*/
|
||||
class AttributeValue extends BaseAttributeValue
|
||||
{
|
||||
}
|
||||
24
msgphp/eav-bundle/0.2/src/Entity/Eav/Attribute.php
Normal file
24
msgphp/eav-bundle/0.2/src/Entity/Eav/Attribute.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
26
msgphp/eav-bundle/0.2/src/Entity/Eav/AttributeValue.php
Normal file
26
msgphp/eav-bundle/0.2/src/Entity/Eav/AttributeValue.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\User;
|
||||
|
||||
use MsgPhp\User\Entity\User as BaseUser;
|
||||
|
||||
/**
|
||||
* @final
|
||||
*/
|
||||
class User extends BaseUser
|
||||
{
|
||||
}
|
||||
24
msgphp/user-bundle/0.2/src/Entity/User/User.php
Normal file
24
msgphp/user-bundle/0.2/src/Entity/User/User.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\User;
|
||||
|
||||
use MsgPhp\User\Entity\User as BaseUser;
|
||||
use MsgPhp\User\UserIdInterface;
|
||||
|
||||
/**
|
||||
* @final
|
||||
*/
|
||||
class User extends BaseUser
|
||||
{
|
||||
private $id;
|
||||
|
||||
public function __construct(UserIdInterface $id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
public function getId(): UserIdInterface
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user