Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
8 | trait MetadataTrait |
||
9 | { |
||
10 | /** |
||
11 | * @var Metadata[] |
||
12 | */ |
||
13 | protected $metadata; |
||
14 | |||
15 | /** |
||
16 | * All metadata objects. Yeah, that's a horrible plural, I know. |
||
17 | * |
||
18 | * @return Metadata[] |
||
19 | */ |
||
20 | public function getMetadatas(): array |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param string $name |
||
27 | * @return Metadata |
||
28 | */ |
||
29 | public function getMetadata(string $name) |
||
37 | } |
||
38 | |||
39 | public function appendMetadata(Metadata $m): self |
||
45 |