Ejemplo n.º 1
0
 /**
  * 设置输入
  * @param mixed $input
  * @return self
  */
 public function setInput($input)
 {
     if ($this->isRunning()) {
         throw new \LogicException('Input can not be set while the process is running.');
     }
     $this->input = Utils::validateInput(sprintf('%s::%s', __CLASS__, __FUNCTION__), $input);
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * 设置输入
  * @param mixed $input
  * @return self
  */
 public function setInput($input)
 {
     $this->input = Utils::validateInput(sprintf('%s::%s', __CLASS__, __FUNCTION__), $input);
     return $this;
 }