Ejemplo n.º 1
0
 /**
  * Override get the input options and arguments for the JobCommand
  *
  * @param \Netresearch\Kite\Task $task The task
  *
  * @return $this|mixed $this or the task return value when this is running
  */
 public function addTask(Task $task)
 {
     if (!$this->started) {
         $this->addVariablesFromTask($task);
     }
     return parent::addTask($task);
 }
Ejemplo n.º 2
0
 /**
  * Determine if a variable is available on this very object
  *
  * @param mixed $offset Variable name
  *
  * @internal See {@see Variables::offsetGet()}
  *
  * @return boolean
  */
 public function offsetExists($offset)
 {
     return in_array($offset, array('packages', 'rootPackage')) || parent::offsetExists($offset);
 }