-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEntityAttributeValue.php
More file actions
50 lines (41 loc) · 958 Bytes
/
EntityAttributeValue.php
File metadata and controls
50 lines (41 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
declare(strict_types=1);
namespace MsgPhp\Eav\Model;
use MsgPhp\Eav\Attribute;
use MsgPhp\Eav\AttributeId;
use MsgPhp\Eav\AttributeValue;
use MsgPhp\Eav\AttributeValueId;
/**
* @author Roland Franssen <[email protected]>
*/
trait EntityAttributeValue
{
/** @var AttributeValue */
private $attributeValue;
public function getId(): AttributeValueId
{
return $this->attributeValue->getId();
}
public function getAttribute(): Attribute
{
return $this->attributeValue->getAttribute();
}
public function getAttributeId(): AttributeId
{
return $this->attributeValue->getAttributeId();
}
/**
* @return mixed
*/
public function getValue()
{
return $this->attributeValue->getValue();
}
/**
* @param mixed $value
*/
public function changeValue($value): void
{
$this->attributeValue->changeValue($value);
}
}