think\File::hash PHP Method

hash() public method

获取文件的哈希散列值
public hash ( $type = 'sha1' )
    public function hash($type = 'sha1')
    {
        if (!isset($this->hash[$type])) {
            $this->hash[$type] = hash_file($type, $this->filename);
        }
        return $this->hash[$type];
    }