Total Complexity | 4 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 70% |
Changes | 0 |
1 | <?php |
||
21 | class ObjectDefinition implements ObjectDefinitionInterface, NodeAwareDefinitionInterface |
||
22 | { |
||
23 | use DefinitionTrait; |
||
24 | use FieldsAwareDefinitionTrait; |
||
25 | use ClassAwareDefinitionTrait; |
||
26 | use ObjectDefinitionTrait; |
||
27 | |||
28 | /** |
||
29 | * @var string[] |
||
30 | */ |
||
31 | protected $interfaces = []; |
||
32 | |||
33 | /** |
||
34 | * @return string[] |
||
35 | */ |
||
36 | 1 | public function getInterfaces(): array |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param string $name |
||
43 | */ |
||
44 | 1 | public function addInterface(string $name) |
|
45 | { |
||
46 | 1 | $this->interfaces[] = $name; |
|
47 | 1 | } |
|
48 | |||
49 | /** |
||
50 | * {@inheritDoc} |
||
51 | */ |
||
52 | public function setNode(?string $node): NodeAwareDefinitionInterface |
||
53 | { |
||
54 | $this->setClass($node); |
||
55 | |||
56 | return $this; |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * {@inheritDoc} |
||
61 | */ |
||
62 | 1 | public function getNode(): ?string |
|
65 | } |
||
66 | } |
||
67 |