public function queryCacheState(string $resource = null): ?array
    {
        if ($resource === null) {
            return $this->cacheState;
        }

        if (isset($this->newCacheState[$resource])) {
            return $this->newCacheState[$resource];
        }

        if (isset($this->cacheState[$resource])) {
            return $this->cacheState[$resource];
        }

        return null;
    }
public function queryCacheState(string $resource = null): ?array
    {
        if ($resource === null) {
            return $this->cacheState;
        }

        if (isset($this->newCacheState[$resource])) {
            return $this->newCacheState[$resource];
        }

        if (isset($this->cacheState[$resource])) {
            return $this->cacheState[$resource];
        }

        return null;
    }
public function queryCacheState ( string $ resource = null ) : ? array { if ( $ resource === null ) { return $ this -> cacheState ; } if ( isset ( $ this -> newCacheState [ $ resource ] ) ) { return $ this -> newCacheState [ $ resource ] ; } if ( isset ( $ this -> cacheState [ $ resource ] ) ) { return $ this -> cacheState [ $ resource ] ; } return null ; }
Tries to return an information for queried resource

@param string|null $resource Name of the file or null to get all information

@return array|null Information or null if no record in the cache
Tries to return an information for queried resource