| 1 | <?php |
||
| 7 | class ErrorBag implements ErrorThrowable, Countable |
||
| 8 | { |
||
| 9 | /** @var array */ |
||
| 10 | public $errors = []; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param string $type |
||
| 14 | * @param array $keys |
||
| 15 | */ |
||
| 16 | 6 | public function throws(string $type, array $keys = []) |
|
| 20 | |||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | 6 | public function count() |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | public function errors(): array |
||
| 45 | } |
||
| 46 |