AbstractTask::getConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Genkgo\Srvcleaner\Tasks;
3
4
use Genkgo\Srvcleaner\TaskInterface;
5
use stdClass;
6
7
/**
8
 * Class AbstractTask
9
 * @package Genkgo\Srvcleaner\Tasks
10
 */
11
abstract class AbstractTask implements TaskInterface
12
{
13
    /**
14
     * @var
15
     */
16
    private $currentWorkingDirectory;
17
18
    /**
19
     * @var stdClass
20
     */
21
    private $config;
22
23
    /**
24
     * @return stdClass
25
     */
26
    public function getConfig()
27
    {
28
        return $this->config;
29
    }
30
31
    /**
32
     * @param stdClass $config
33
     */
34
    public function setConfig(stdClass $config)
35
    {
36
        $this->config = $config;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getCurrentWorkingDirectory()
43
    {
44
        return $this->currentWorkingDirectory;
45
    }
46
47
    /**
48
     * @param string $currentWorkingDirectory
49
     */
50
    public function setCurrentWorkingDirectory($currentWorkingDirectory)
51
    {
52
        $this->currentWorkingDirectory = $currentWorkingDirectory;
53
    }
54
55
    /**
56
     * @param bool $dryRun
57
     * @return void
58
     */
59
    abstract public function execute($dryRun = false);
60
}
61