src/POData/Writers/Metadata/MetadataWriter.php
/**
     * Write all resource types (entity and complex types)
     * 
     * @param ResourceType[] $resourceTypes resource types array

     * @param array $associationTypesInResourceTypesNamespace collection of 
     * association types for the given resource types
     * array(string, AssociationType)
     * 
     * @return void
     */
Write all resource types (entity and complex types)

@param ResourceType[] $resourceTypes resource types array

@param array $associationTypesInResourceTypesNamespace collection of
association types for the given resource types
array(string, AssociationType)

@return void
Write all resource types ( entity and complex types ) @param ResourceType [] $resourceTypes resource types array @param array $associationTypesInResourceTypesNamespace collection of association types for the given resource types array ( string AssociationType ) @return void
private function _writeResourceTypes($resourceTypes, $associationTypesInResourceTypesNamespace)
    {
        foreach ($resourceTypes as $resourceType) {
            if ($resourceType->getResourceTypeKind() == ResourceTypeKind::ENTITY) {
                $this->_writeEntityType($resourceType, $associationTypesInResourceTypesNamespace);
            } else if ($resourceType->getResourceTypeKind() == ResourceTypeKind::COMPLEX) {
                $this->_writeComplexType($resourceType);
            } else {
                throw ODataException::createInternalServerError(Messages::metadataWriterExpectingEntityOrComplexResourceType());
            }
        }
    }
private function _writeResourceTypes ( $ resourceTypes , $ associationTypesInResourceTypesNamespace ) { foreach ( $ resourceTypes as $ resourceType ) { if ( $ resourceType -> getResourceTypeKind ( ) == ResourceTypeKind :: ENTITY ) { $ this -> _writeEntityType ( $ resourceType , $ associationTypesInResourceTypesNamespace ) ; } else if ( $ resourceType -> getResourceTypeKind ( ) == ResourceTypeKind :: COMPLEX ) { $ this -> _writeComplexType ( $ resourceType ) ; } else { throw ODataException :: createInternalServerError ( Messages :: metadataWriterExpectingEntityOrComplexResourceType ( ) ) ; } } }
Write all resource types (entity and complex types)
Write all resource types ( entity and complex types )