Completed
Push — master ( eaaddc...057168 )
by Sebastian
09:01
created

Abstraction   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 29
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setSimulation() 0 4 1
A isSimulation() 0 4 1
1
<?php
2
namespace phpbu\App\Runner\Backup;
3
4
/**
5
 * Task Runner Interface
6
 *
7
 * @package    phpbu
8
 * @subpackage App
9
 * @author     Sebastian Feldmann <[email protected]>
10
 * @copyright  Sebastian Feldmann <[email protected]>
11
 * @license    https://opensource.org/licenses/MIT The MIT License (MIT)
12
 * @link       https://phpbu.de/
13
 * @since      Class available since Release 3.0.0
14
 */
15
abstract class Abstraction implements Task
16
{
17
    /**
18
     * Is simulation run.
19
     *
20
     * @var bool
21
     */
22
    protected $isSimulation;
23
24
    /**
25
     * Set is simulation
26
     *
27
     * @param $bool
28
     */
29 18
    public function setSimulation(bool $bool)
30
    {
31 18
        $this->isSimulation = $bool;
32 18
    }
33
34
    /**
35
     * Is simulation getter.
36
     *
37
     * @return bool
38
     */
39 17
    public function isSimulation() : bool
40
    {
41 17
        return $this->isSimulation;
42
    }
43
}
44