Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | trait JsonSerializableTrait |
||
11 | { |
||
12 | /** |
||
13 | * @return (DependencyStatus[]|string)[] |
||
14 | * |
||
15 | * @psalm-return array{status: string, dependencies: list<DependencyStatus>} |
||
16 | */ |
||
17 | public function jsonSerialize(): array |
||
28 | ]; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return iterable<DependencyStatus> |
||
33 | */ |
||
34 | abstract public function dependencies(): iterable; |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | abstract private function getStatus(): string; |
||
40 | } |
||
41 |