1 | <?php |
||
10 | class Task |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $name; |
||
16 | |||
17 | /** |
||
18 | * @var ConfigurationInterface |
||
19 | */ |
||
20 | protected $configuration; |
||
21 | |||
22 | /** |
||
23 | * Task constructor. |
||
24 | * |
||
25 | * @param $name |
||
26 | * @param TaskConfiguration $configuration |
||
27 | */ |
||
28 | 2 | public function __construct($name, TaskConfiguration $configuration) |
|
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | 1 | public function getName() |
|
41 | |||
42 | /** |
||
43 | * @return ConfigurationInterface |
||
44 | */ |
||
45 | 2 | public function getConfiguration() |
|
49 | |||
50 | /** |
||
51 | * Return the configured sources. |
||
52 | * |
||
53 | * @return string[] |
||
54 | */ |
||
55 | 2 | public function getSources() |
|
61 | |||
62 | /** |
||
63 | * Define the task new sources. |
||
64 | * |
||
65 | * @param array $sources |
||
66 | */ |
||
67 | 1 | public function setSources(array $sources) |
|
78 | |||
79 | /** |
||
80 | * Return the configured destinations. |
||
81 | * |
||
82 | * @return string[] |
||
83 | */ |
||
84 | 1 | public function getDestinations() |
|
90 | |||
91 | /** |
||
92 | * Return true if the task is in debug mode. |
||
93 | * |
||
94 | * @return boolean |
||
95 | */ |
||
96 | 1 | public function isDebug() |
|
102 | } |
||
103 |