1 | <?php declare(strict_types=1); |
||
28 | class ErrorAggregator implements ErrorAggregatorInterface |
||
29 | { |
||
30 | /** |
||
31 | * @var ErrorInterface[] |
||
32 | */ |
||
33 | private $errors; |
||
34 | |||
35 | /** |
||
36 | * Constructor. |
||
37 | */ |
||
38 | 21 | public function __construct() |
|
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | 17 | public function add(ErrorInterface $error): ErrorAggregatorInterface |
|
52 | |||
53 | /** |
||
54 | * @inheritdoc |
||
55 | */ |
||
56 | 21 | public function get(): array |
|
60 | |||
61 | /** |
||
62 | * @inheritdoc |
||
63 | */ |
||
64 | 16 | public function count() |
|
68 | |||
69 | /** |
||
70 | * @inheritdoc |
||
71 | */ |
||
72 | 21 | public function clear(): ErrorAggregatorInterface |
|
78 | } |
||
79 |