protected function getAvailableTypes(string $resource)
    {
        $cached = $this->cache['available_types'][$resource] ?? null;
        if ($cached !== null) {
            return $cached;
        }

        $types = $this->resources[$resource]['handlers']['GET'] ?? [];
        $types = (is_array($types))
            ? array_filter(array_replace($this->default_content_type, $types))
            : [];

        $this->cache['available_types'][$resource] = $types;
        return $types;
    }
protected function getAvailableTypes(string $resource)
    {
        $cached = $this->cache['available_types'][$resource] ?? null;
        if ($cached !== null) {
            return $cached;
        }

        $types = $this->resources[$resource]['handlers']['GET'] ?? [];
        $types = (is_array($types))
            ? array_filter(array_replace($this->default_content_type, $types))
            : [];

        $this->cache['available_types'][$resource] = $types;
        return $types;
    }
protected function getAvailableTypes ( string $ resource ) { $ cached = $ this -> cache [ 'available_types' ] [ $ resource ] ?? null ; if ( $ cached !== null ) { return $ cached ; } $ types = $ this -> resources [ $ resource ] [ 'handlers' ] [ 'GET' ] ?? [ ] ; $ types = ( is_array ( $ types ) ) ? array_filter ( array_replace ( $ this -> default_content_type , $ types ) ) : [ ] ; $ this -> cache [ 'available_types' ] [ $ resource ] = $ types ; return $ types ; }
Computes GET Resource's content types

NOTE:
- It caches results

@param string $resource Resource name

@return mixed[]
Computes GET Resource s content types