src/POData/Providers/ProvidersWrapper.php
/**
     * Gets the resource type on which the resource property is declared on, 
     * If property is not declared in the given resource type, then this 
     * function drill down to the inheritance hierarchy of the given resource
     * type to find out the base class in which the property is declared
     * 
     * @param ResourceType     $resourceType     The resource type to start looking
     * @param ResourceProperty $resourceProperty The resource property in question
     * 
     * @return ResourceType|null Returns reference to the ResourceType on which 
     *                                   the $resourceProperty is declared, NULL if 
     *                                   $resourceProperty is not declared anywhere 
     *                                   in the inheritance hierarchy
     */
Gets the resource type on which the resource property is declared on,
If property is not declared in the given resource type, then this
function drill down to the inheritance hierarchy of the given resource
type to find out the base class in which the property is declared

@param ResourceType     $resourceType     The resource type to start looking
@param ResourceProperty $resourceProperty The resource property in question

@return ResourceType|null Returns reference to the ResourceType on which
the $resourceProperty is declared, NULL if
$resourceProperty is not declared anywhere
in the inheritance hierarchy
Gets the resource type on which the resource property is declared on If property is not declared in the given resource type then this function drill down to the inheritance hierarchy of the given resource type to find out the base class in which the property is declared @param ResourceType $resourceType The resource type to start looking @param ResourceProperty $resourceProperty The resource property in question @return ResourceType|null Returns reference to the ResourceType on which the $resourceProperty is declared NULL if $resourceProperty is not declared anywhere in the inheritance hierarchy
private function _getResourceTypeWherePropertyIsDeclared(ResourceType $resourceType, 
        ResourceProperty $resourceProperty
    ) {
        $type = $resourceType;
        while ($type !== null) {
            if ($type->resolvePropertyDeclaredOnThisType($resourceProperty->getName()) !== null) {
                break;
            }
            $type = $type->getBaseType();
        }
        return $type;
    }
private function _getResourceTypeWherePropertyIsDeclared ( ResourceType $ resourceType , ResourceProperty $ resourceProperty ) { $ type = $ resourceType ; while ( $ type !== null ) { if ( $ type -> resolvePropertyDeclaredOnThisType ( $ resourceProperty -> getName ( ) ) !== null ) { break ; } $ type = $ type -> getBaseType ( ) ; } return $ type ; }
Gets the resource type on which the resource property is declared on,
 If property is not declared in the given resource type, then this
 function drill down to the inheritance hierarchy of the given resource
 type to find out the base class in which the property is declared
Gets the resource type on which the resource property is declared on If property is not declared in the given resource type then this function drill down to the inheritance hierarchy of the given resource type to find out the base class in which the property is declared