Example #1
0
 public function setArgumentsValue($value)
 {
     if ($this->hasArgument() && !$this->getCurrentArgument()->hasValue()) {
         $Arg = $this->getCurrentArgument();
     } else {
         if (($Arg = $this->getNextArgument()) === false) {
             TaskErrors::tooManyArguments($this->getNumberOfArguments());
         }
     }
     $Arg->setValue($value);
     $name = $Arg->getName();
     if (isset($this->requiredArguments[$name])) {
         unset($this->requiredArguments[$name]);
     }
 }