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;
    }
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;
    }
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 ; }
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
Sets the input .