Neos\Flow\ResourceManagement\PersistentResource::getSha1 PHP Метод

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

Returns the SHA1 hash of the content of this resource
public getSha1 ( ) : string
Результат string The sha1 hash
    public function getSha1()
    {
        return $this->sha1;
    }

Usage Example

 /**
  * Finds other resources which are referring to the same resource data and filename
  *
  * @param PersistentResource $resource The resource used for finding similar resources
  * @return QueryResultInterface The result, including the given resource
  */
 public function findSimilarResources(PersistentResource $resource)
 {
     $query = $this->createQuery();
     $query->matching($query->logicalAnd($query->equals('sha1', $resource->getSha1()), $query->equals('filename', $resource->getFilename())));
     return $query->execute();
 }
All Usage Examples Of Neos\Flow\ResourceManagement\PersistentResource::getSha1