protected function getOutputByType($type)
    {
        switch ($type) {
            case 'stderr':
                $actual = $this->process->getErrorOutput();
                break;

            case 'all':
                $actual = $this->process->getOutput() . $this->process->getErrorOutput();
                break;

            case 'stdout':
            default:
                $actual = $this->process->getOutput();
                break;
        }

        return $actual;
    }
protected function getOutputByType($type)
    {
        switch ($type) {
            case 'stderr':
                $actual = $this->process->getErrorOutput();
                break;

            case 'all':
                $actual = $this->process->getOutput() . $this->process->getErrorOutput();
                break;

            case 'stdout':
            default:
                $actual = $this->process->getOutput();
                break;
        }

        return $actual;
    }
protected function getOutputByType ( $ type ) { switch ( $ type ) { case 'stderr' : $ actual = $ this -> process -> getErrorOutput ( ) ; break ; case 'all' : $ actual = $ this -> process -> getOutput ( ) . $ this -> process -> getErrorOutput ( ) ; break ; case 'stdout' : default : $ actual = $ this -> process -> getOutput ( ) ; break ; } return $ actual ; }
Get output by type

@param string $type
@return string
Get output by type