protected function getResourceLength(): int
    {
        if (null === $this->fileName) {
            return parent::getResourceLength();
        }

        if (substr($this->fileName, 0, 16) === 'compress.zlib://') {
            return filesize(substr($this->fileName, 16));
        } elseif (substr($this->fileName, 0, 17) === 'compress.bzip2://') {
            return filesize(substr($this->fileName, 17));
        }

        return parent::getResourceLength();
    }
protected function getResourceLength(): int
    {
        if (null === $this->fileName) {
            return parent::getResourceLength();
        }

        if (substr($this->fileName, 0, 16) === 'compress.zlib://') {
            return filesize(substr($this->fileName, 16));
        } elseif (substr($this->fileName, 0, 17) === 'compress.bzip2://') {
            return filesize(substr($this->fileName, 17));
        }

        return parent::getResourceLength();
    }
protected function getResourceLength ( ) : int { if ( null === $ this -> fileName ) { return parent :: getResourceLength ( ) ; } if ( substr ( $ this -> fileName , 0 , 16 ) === 'compress.zlib://' ) { return filesize ( substr ( $ this -> fileName , 16 ) ) ; } elseif ( substr ( $ this -> fileName , 0 , 17 ) === 'compress.bzip2://' ) { return filesize ( substr ( $ this -> fileName , 17 ) ) ; } return parent :: getResourceLength ( ) ; }
helper method to retrieve the length of the resource

@return  int
helper method to retrieve the length of the resource