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

Abstraction::isSimulation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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