original_string: public function setInput($input)
      {
          if ($this->isRunning()) {
              throw new LogicException('Input can not be set while the process is running.');
          }
  
          $this->input = ProcessUtils::validateInput(__METHOD__, $input);
  
          return $this;
      }
code: public function setInput($input)
      {
          if ($this->isRunning()) {
              throw new LogicException('Input can not be set while the process is running.');
          }
  
          $this->input = ProcessUtils::validateInput(__METHOD__, $input);
  
          return $this;
      }
code_tokens: public function setInput ( $ input ) { if ( $ this -> isRunning ( ) ) { throw new LogicException ( 'Input can not be set while the process is running.' ) ; } $ this -> input = ProcessUtils :: validateInput ( __METHOD__ , $ input ) ; return $ this ; }
docstring: Sets the input.
  
  This content will be passed to the underlying process standard input.
  
  @param string|int|float|bool|resource|\Traversable|null $input The content
  
  @return self The current Process instance
  
  @throws LogicException In case the process is running
docstring_tokens: Sets the input .