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

AbstractSystem   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 38
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A run() 0 3 1
A toRun() 0 3 1
A isRun() 0 3 1
1
<?php
2
3
namespace BFW\Core\AppSystems;
4
5
/**
6
 * Abstract class for Core System.
7
 * Implement SystemInterface and define some methods with the default behavior
8
 */
9
abstract class AbstractSystem implements SystemInterface
10
{
11
    /**
12
     * @var boolean $runStatus To know if the run method has been called
13
     */
14
    protected $runStatus = false;
15
    
16
    /**
17
     * PHP Magic method
18
     * Called when the class is called like a function
19
     * 
20
     * @return mixed
21
     */
22
    abstract public function __invoke();
23
    
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function toRun(): bool
28
    {
29
        return false;
30
    }
31
    
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function isRun(): bool
36
    {
37
        return $this->runStatus;
38
    }
39
    
40
    /**
41
     * {@inheritdoc}
42
     * Should change runStatus to true.
43
     */
44
    public function run()
45
    {
46
        $this->runStatus = true;
47
    }
48
}
49