Neos\Flow\ResourceManagement\ResourcePointer::getHash PHP Метод

getHash() публичный Метод

Returns the hash of this resource
Устаревший:
public getHash ( ) : string
Результат string A 40 character hexadecimal sha1 hash over the content of this resource
    public function getHash()
    {
        return $this->hash;
    }

Usage Example

 /**
  * Sets the resource pointer
  *
  * Deprecated – use setSha1() instead!
  *
  * @param ResourcePointer $resourcePointer
  * @return void
  * @deprecated Since version 3.0, use setSha1() to set the raw hash of the resourcePointer
  * @see setSha1()
  */
 public function setResourcePointer(ResourcePointer $resourcePointer)
 {
     $this->throwExceptionIfProtected();
     $this->sha1 = $resourcePointer->getHash();
 }