Swift_ByteStream_FileByteStream::_getWriteHandle PHP Method

_getWriteHandle() private method

Get the resource for writing
private _getWriteHandle ( )
    private function _getWriteHandle()
    {
        if (!isset($this->_writer)) {
            if (!($this->_writer = fopen($this->_path, $this->_mode))) {
                throw new Swift_IoException('Unable to open file for writing [' . $this->_path . ']');
            }
        }
        return $this->_writer;
    }