1 | <?php |
||
13 | class AbstractTask implements DiProviderInterface, TaskInterface |
||
14 | { |
||
15 | // an array of cli handler options |
||
16 | private $options; |
||
17 | |||
18 | /** |
||
19 | * Initializes the cli task from the given configuration. |
||
20 | * @param array $options The task options. |
||
21 | */ |
||
22 | 2 | public function init($options) |
|
26 | |||
27 | /** |
||
28 | * Returns the current set of options. |
||
29 | * @return array The current set of options. |
||
30 | */ |
||
31 | 1 | public function getOptions() |
|
35 | |||
36 | /** |
||
37 | * Sets the current set of options. |
||
38 | * @param array $options The set of options. |
||
39 | * @return AbstractTask Returns $this. |
||
40 | */ |
||
41 | 2 | public function setOptions($options) |
|
46 | |||
47 | /** |
||
48 | * Retrieve an element from the DI container. |
||
49 | * @param string $key The DI key. |
||
50 | * @param boolean $useCache (optional) An optional indicating whether we |
||
51 | * should use the cached version of the element (true by default). |
||
52 | * @return mixed Returns the DI element mapped to that key. |
||
53 | */ |
||
54 | 1 | public function get($key, $useCache = true) |
|
58 | |||
59 | /** |
||
60 | * Sets an element in the DI container for the specified key. |
||
61 | * @param string $key The DI key. |
||
62 | * @param mixed $element The DI element to store. |
||
63 | * @return Di Returns the Di instance. |
||
64 | */ |
||
65 | 1 | public function set($key, $element) |
|
69 | } |
||
70 |