Symfony\Component\Process\Process::getInput PHP 메소드

getInput() 공개 메소드

Gets the Process input.
public getInput ( ) : resource | string | Iterator | null
리턴 resource | string | Iterator | null The Process input
    public function getInput()
    {
        return $this->input;
    }

Usage Example

 public function __construct(Process $process)
 {
     if ($process->isSuccessful()) {
         throw new InvalidArgumentException('Expected a failed process, but the given process was successful.');
     }
     $error = sprintf('The command "%s" failed.', $process->getInput());
     if (!$process->isOutputDisabled()) {
         $error .= sprintf("\n\nOutput:\n================\n%s\n\nError Output:\n================\n%s", $process->getOutput(), $process->getErrorOutput());
     }
     parent::__construct($error);
     $this->process = $process;
 }
All Usage Examples Of Symfony\Component\Process\Process::getInput