Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class Errors extends AbstractSystem |
||
6 | { |
||
7 | /** |
||
8 | * @var \BFW\Core\Errors $errors The error object |
||
9 | */ |
||
10 | protected $errors; |
||
11 | |||
12 | /** |
||
13 | * Initialize the errors property |
||
14 | */ |
||
15 | public function __construct() |
||
16 | { |
||
17 | $this->errors = new \BFW\Core\Errors; |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | * |
||
23 | * @return \BFW\Core\Errors |
||
24 | */ |
||
25 | public function __invoke() |
||
26 | { |
||
27 | return $this->errors; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Getter accessor to property errors |
||
32 | * |
||
33 | * @return \BFW\Core\Errors |
||
34 | */ |
||
35 | public function getErrors() |
||
38 | } |
||
39 | } |
||
40 |