Total Complexity | 6 |
Total Lines | 72 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | abstract class Asserter implements Contract |
||
28 | { |
||
29 | /** |
||
30 | * The assertions. |
||
31 | * |
||
32 | * @var string[] |
||
33 | */ |
||
34 | protected array $assertions = []; |
||
35 | |||
36 | /** |
||
37 | * The errors. |
||
38 | * |
||
39 | * @var AssertFailureException[] |
||
40 | */ |
||
41 | protected array $errors = []; |
||
42 | |||
43 | /** |
||
44 | * The successes. |
||
45 | * |
||
46 | * @var string[] |
||
47 | */ |
||
48 | protected array $successes = []; |
||
49 | |||
50 | /** |
||
51 | * The warnings. |
||
52 | * |
||
53 | * @var AssertWarningException[] |
||
54 | */ |
||
55 | protected array $warnings = []; |
||
56 | |||
57 | /** |
||
58 | * @inheritDoc |
||
59 | */ |
||
60 | public function getAssertions(): array |
||
61 | { |
||
62 | return $this->assertions; |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * @inheritDoc |
||
67 | */ |
||
68 | public function getErrors(): array |
||
71 | } |
||
72 | |||
73 | /** |
||
74 | * @inheritDoc |
||
75 | */ |
||
76 | public function getSuccesses(): array |
||
77 | { |
||
78 | return $this->successes; |
||
79 | } |
||
80 | |||
81 | /** |
||
82 | * @inheritDoc |
||
83 | */ |
||
84 | public function getWarnings(): array |
||
85 | { |
||
86 | return $this->warnings; |
||
87 | } |
||
88 | |||
89 | /** |
||
90 | * @inheritDoc |
||
91 | */ |
||
92 | public function __get(string $name): mixed |
||
99 | } |
||
100 | } |
||
101 |