src/POData/Providers/Metadata/SimpleMetadataProvider.php
/**
     * Add a complex type
     * 
     * @param \ReflectionClass $refClass         reflection class of the complex entity type
     * @param string          $name             name of the entity
     * @param string          $namespace        namespace of the data source.
     * @param ResourceType    $baseResourceType base resource type
     * 
     * @return ResourceType
     *
     * @throws InvalidOperationException when the name is already in use
     */
Add a complex type

@param \ReflectionClass $refClass         reflection class of the complex entity type
@param string          $name             name of the entity
@param string          $namespace        namespace of the data source.



@throws InvalidOperationException when the name is already in use
Add a complex type @param \ ReflectionClass $refClass reflection class of the complex entity type @param string $name name of the entity @param string $namespace namespace of the data source . @throws InvalidOperationException when the name is already in use
public function addComplexType(\ReflectionClass $refClass, $name, $namespace = null, $baseResourceType = null)
    {
        if (array_key_exists($name, $this->resourceTypes)) {
            throw new InvalidOperationException('Type with same name already added');
        }
        $complexType = new ResourceType($refClass, ResourceTypeKind::COMPLEX, $name, $namespace, $baseResourceType);    	
        $this->resourceTypes[$name] = $complexType;
        return $complexType;
    }
public function addComplexType ( \ ReflectionClass $ refClass , $ name , $ namespace = null , $ baseResourceType = null ) { if ( array_key_exists ( $ name , $ this -> resourceTypes ) ) { throw new InvalidOperationException ( 'Type with same name already added' ) ; } $ complexType = new ResourceType ( $ refClass , ResourceTypeKind :: COMPLEX , $ name , $ namespace , $ baseResourceType ) ; $ this -> resourceTypes [ $ name ] = $ complexType ; return $ complexType ; }
Add a complex type
Add a complex type