private function setOutputFile(int $stream, string $path, bool $append)
    {
        if (!is_writable($path)) {
            throw new \InvalidArgumentException(
                "invalid value provided for 'path'; ".
                "'$path' is not a writable file"
            );
        }
        $this->spec[$stream] = ["file", $path, $append === true ? "a" : "w"];
    }
private function setOutputFile(int $stream, string $path, bool $append)
    {
        if (!is_writable($path)) {
            throw new \InvalidArgumentException(
                "invalid value provided for 'path'; ".
                "'$path' is not a writable file"
            );
        }
        $this->spec[$stream] = ["file", $path, $append === true ? "a" : "w"];
    }
private function setOutputFile ( int $ stream , string $ path , bool $ append ) { if ( ! is_writable ( $ path ) ) { throw new \ InvalidArgumentException ( "invalid value provided for 'path'; " . "'$path' is not a writable file" ) ; } $ this -> spec [ $ stream ] = [ "file" , $ path , $ append === true ? "a" : "w" ] ; }
Set an output file for either stdout or stderr

@param integer $stream The index of the relevant stream
@param string $path An absolute file path
@param bool $append Whether or not to append to the file
Set an output file for either stdout or stderr