public function isWritable() : bool
	{
		if (! \is_resource($this->resource))
		{
			return false;
		}

		$metadata = \stream_get_meta_data($this->resource);

		return ! (false === \strpbrk($metadata['mode'], '+acwx'));
	}
public function isWritable() : bool
	{
		if (! \is_resource($this->resource))
		{
			return false;
		}

		$metadata = \stream_get_meta_data($this->resource);

		return ! (false === \strpbrk($metadata['mode'], '+acwx'));
	}
public function isWritable ( ) : bool { if ( ! \ is_resource ( $ this -> resource ) ) { return false ; } $ metadata = \ stream_get_meta_data ( $ this -> resource ) ; return ! ( false === \ strpbrk ( $ metadata [ 'mode' ] , '+acwx' ) ) ; }
Checks if the stream is writable

@return bool
Checks if the stream is writable