public function getSize() : ?int
	{
		if (! \is_resource($this->resource))
		{
			return null;
		}

		$stats = \fstat($this->resource);

		if (false === $stats)
		{
			return null;
		}

		return $stats['size'];
	}
public function getSize() : ?int
	{
		if (! \is_resource($this->resource))
		{
			return null;
		}

		$stats = \fstat($this->resource);

		if (false === $stats)
		{
			return null;
		}

		return $stats['size'];
	}
public function getSize ( ) : ? int { if ( ! \ is_resource ( $ this -> resource ) ) { return null ; } $ stats = \ fstat ( $ this -> resource ) ; if ( false === $ stats ) { return null ; } return $ stats [ 'size' ] ; }
Gets the stream size

Returns NULL if the stream without a resource, or if the stream size cannot be determined.

@return null|int

@link http://php.net/manual/en/function.fstat.php
Gets the stream size