Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 45.45% |
Changes | 0 |
1 | <?php |
||
16 | trait InterfacesAwareTrait |
||
17 | { |
||
18 | /** |
||
19 | * @var string[] |
||
20 | */ |
||
21 | protected $interfaces = []; |
||
22 | |||
23 | /** |
||
24 | * @return string[] |
||
25 | */ |
||
26 | 22 | public function getInterfaces(): array |
|
27 | { |
||
28 | 22 | return $this->interfaces; |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param string $name |
||
33 | */ |
||
34 | 1 | public function addInterface(string $name) |
|
37 | 1 | } |
|
38 | |||
39 | /** |
||
40 | * @param string $name |
||
41 | * |
||
42 | * @return $this |
||
43 | */ |
||
44 | public function removeInterface(string $name) |
||
56 |