Errors::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace BFW\Core\AppSystems;
4
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()
36
    {
37
        return $this->errors;
38
    }
39
}
40