1 | <?php |
||
6 | class ErrorBag implements Countable |
||
7 | { |
||
8 | /** @var string[] */ |
||
9 | private $prefixes = []; |
||
10 | |||
11 | /** @var array */ |
||
12 | public $errors = []; |
||
13 | |||
14 | /** |
||
15 | * @param string $prefix |
||
16 | 3 | */ |
|
17 | public function pushPrefix(string $prefix) |
||
21 | 3 | ||
22 | public function popPrefix() |
||
26 | |||
27 | /** |
||
28 | * @param string $type |
||
29 | * @param array $target |
||
30 | */ |
||
31 | public function store(string $type, array $target = []) |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | 3 | */ |
|
42 | public function count() |
||
46 | |||
47 | /** |
||
48 | * @return array |
||
49 | */ |
||
50 | public function errors(): array |
||
60 | } |
||
61 |