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