Completed
Push — 3.0 ( fea5eb...c29f0e )
by Vermeulen
02:17
created

Errors   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 35
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 1
A getErrors() 0 4 1
A init() 0 5 1
1
<?php
2
3
namespace BFW\Core\AppSystems;
4
5
class Errors extends AbstractSystem
6
{
7
    /**
8
     * @var \BFW\Core\Errors|null $errors The error object
9
     */
10
    protected $errors;
11
    
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function __invoke()
16
    {
17
        return $this->errors;
18
    }
19
20
    /**
21
     * Getter accessor to property errors
22
     * 
23
     * @return \BFW\Core\Errors|null
24
     */
25
    public function getErrors()
26
    {
27
        return $this->errors;
28
    }
29
    
30
    /**
31
     * {@inheritdoc}
32
     * Initialize the errors property
33
     */
34
    public function init()
35
    {
36
        $this->errors     = new \BFW\Core\Errors;
37
        $this->initStatus = true;
38
    }
39
}
40