JamesMoss\Flywheel\CachedQuery::getFileHash PHP Метод

getFileHash() защищенный Метод

Uses filematime() for speed when checking for file changes (rather than using crc32 or md5 etc)
protected getFileHash ( ) : string
Результат string A 128bit hash in hexadecimal format.
    protected function getFileHash()
    {
        $files = $this->repo->getAllFiles();
        $hash = '';
        foreach ($files as $file) {
            $hash .= $file . '|';
            $hash .= (string) filemtime($file) . '|';
        }
        $hash = md5($hash);
        return $hash;
    }