src/POData/Providers/ProvidersWrapper.php
/**
     * Validates the given instance of ResourceType
     * 
     * @param ResourceType $resourceType The ResourceType to validate
     * 
     * @return ResourceType
     * 
     * @throws ODataException Exception if $resourceType is invalid
     */
Validates the given instance of ResourceType

@param ResourceType $resourceType The ResourceType to validate



@throws ODataException Exception if $resourceType is invalid
Validates the given instance of ResourceType @param ResourceType $resourceType The ResourceType to validate @throws ODataException Exception if $resourceType is invalid
private function _validateResourceType(ResourceType $resourceType)
    {
        $cacheKey = $resourceType->getName();
        if (array_key_exists($cacheKey, $this->typeCache)) {
            return $this->typeCache[$cacheKey];
        }
        $this->typeCache[$cacheKey] = $resourceType;
        return $resourceType;
    }
private function _validateResourceType ( ResourceType $ resourceType ) { $ cacheKey = $ resourceType -> getName ( ) ; if ( array_key_exists ( $ cacheKey , $ this -> typeCache ) ) { return $ this -> typeCache [ $ cacheKey ] ; } $ this -> typeCache [ $ cacheKey ] = $ resourceType ; return $ resourceType ; }
Validates the given instance of ResourceType
Validates the given instance of ResourceType
//TODO: Do validation if any for the ResourceType