Total Complexity | 5 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class NamedEnumAttributeBuilder extends AttributeBuilderImpl |
||
8 | { |
||
9 | public function __construct(string $attributeName, ModelElementTypeImpl $modelType, string $type) |
||
10 | { |
||
11 | parent::__construct($attributeName, $modelType, new NamedEnumAttribute($modelType, $type)); |
||
12 | } |
||
13 | |||
14 | public function namespace(string $namespaceUri): NamedEnumAttributeBuilder |
||
15 | { |
||
16 | parent::namespace($namespaceUri); |
||
17 | return $this; |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @param mixed $defaultValue |
||
22 | */ |
||
23 | public function defaultValue($defaultValue): NamedEnumAttributeBuilder |
||
24 | { |
||
25 | parent::defaultValue($defaultValue); |
||
26 | return $this; |
||
27 | } |
||
28 | |||
29 | public function required(): NamedEnumAttributeBuilder |
||
30 | { |
||
31 | parent::required(); |
||
32 | return $this; |
||
33 | } |
||
34 | |||
35 | public function idAttribute(): NamedEnumAttributeBuilder |
||
39 | } |
||
40 | } |
||
41 |