1 | <?php |
||
11 | class Attribute implements AttributeInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $name; |
||
17 | |||
18 | /** |
||
19 | * @var EntityTypeInterface |
||
20 | */ |
||
21 | private $entityType; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $valueImplementor; |
||
27 | |||
28 | 58 | public static function define( |
|
41 | |||
42 | 32 | public function makeValue($value = null, EntityInterface $parent = null): ValueObjectInterface |
|
50 | |||
51 | public function getValueType(): string |
||
55 | |||
56 | 58 | public function getName(): string |
|
60 | |||
61 | 3 | public function getEntityType(): EntityTypeInterface |
|
65 | |||
66 | 2 | public function getParent(): ?AttributeInterface |
|
70 | |||
71 | 58 | protected function __construct(string $name, EntityTypeInterface $entityType, string $valueImplementor) |
|
77 | } |
||
78 |