public function setOutputFile($file)
    {
        if (!is_writable(dirname($file))) {
            throw new NotWritableException(sprintf('Output file is not writeable by PhantomJs: %s', $file));
        }

        $this->outputFile = $file;

        return $this;
    }
public function setOutputFile($file)
    {
        if (!is_writable(dirname($file))) {
            throw new NotWritableException(sprintf('Output file is not writeable by PhantomJs: %s', $file));
        }

        $this->outputFile = $file;

        return $this;
    }
public function setOutputFile ( $ file ) { if ( ! is_writable ( dirname ( $ file ) ) ) { throw new NotWritableException ( sprintf ( 'Output file is not writeable by PhantomJs: %s' , $ file ) ) ; } $ this -> outputFile = $ file ; return $ this ; }
Set file to save output.

@param string $file

@throws \JonnyW\PhantomJs\Exception\NotWritableException

@return \JonnyW\PhantomJs\Http\CaptureRequest
Set file to save output .