GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — 3.0 ( 5276e1...94e02b )
by Vermeulen
01:25
created

Options::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 10
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace BFW\Core\AppSystems;
4
5
class Options extends AbstractSystem
6
{
7
    /**
8
     * @var \BFW\Core\Options $options
9
     */
10
    protected $options;
11
    
12
    /**
13
     * Initialize option system with parameter passed to Application
14
     */
15
    public function __construct()
16
    {
17
        $this->options = new \BFW\Core\Options(
18
            $this->obtainDefaultOptions(),
19
            \BFW\Application::getInstance()->getDeclaredOptions()
20
        );
21
        
22
        $this->options
23
            ->searchPaths()
24
            ->checkPaths()
25
        ;
26
    }
27
    
28
    /**
29
     * {@inheritdoc}
30
     * 
31
     * @return \BFW\Core\Options
32
     */
33
    public function __invoke()
34
    {
35
        return $this->options;
36
    }
37
    
38
    /**
39
     * Getter accessor to property options
40
     * 
41
     * @return \BFW\Core\Options
42
     */
43
    public function getOptions()
44
    {
45
        return $this->options;
46
    }
47
    
48
    /**
49
     * Define default option values
50
     * 
51
     * @return array
52
     */
53
    protected function obtainDefaultOptions(): array
54
    {
55
        return [
56
            'rootDir'    => null,
57
            'vendorDir'  => null,
58
            'runSession' => true
59
        ];
60
    }
61
}
62