public function resourceHash($resource, int $length = 8): string
    {
        return $this->_returnHash($resource->getResource()->getSha1(), $length);
    }
public function resourceHash($resource, int $length = 8): string
    {
        return $this->_returnHash($resource->getResource()->getSha1(), $length);
    }
public function resourceHash ( $ resource , int $ length = 8 ) : string { return $ this -> _returnHash ( $ resource -> getResource ( ) -> getSha1 ( ) , $ length ) ; }
Returns a shorten sha1 value of a file property. Fails silent

@param $resource The resource
@param int      $length   The length of the hash, defaults to 8

@return string | boolean
Returns a shorten sha1 value of a file property . Fails silent