src/POData/Writers/Metadata/MetadataWriter.php
/**
     * Gets the edmx schema namespace uri for the given schema version 
     * 
     * @param EdmSchemaVersion $edmSchemaVersion metadata edm
     * schema version
     * 
     * @return string The schema namespace uri
     */
Gets the edmx schema namespace uri for the given schema version

@param EdmSchemaVersion $edmSchemaVersion metadata edm
schema version

@return string The schema namespace uri
Gets the edmx schema namespace uri for the given schema version @param EdmSchemaVersion $edmSchemaVersion metadata edm schema version @return string The schema namespace uri
private function _getSchemaNamespaceUri($edmSchemaVersion)
    {
        switch ($edmSchemaVersion) {
	        case EdmSchemaVersion::VERSION_1_DOT_0:
	            return ODataConstants::CSDL_VERSION_1_0;
	        case EdmSchemaVersion::VERSION_1_DOT_1:
	            return ODataConstants::CSDL_VERSION_1_1;
	        case EdmSchemaVersion::VERSION_1_DOT_2:
	            return ODataConstants::CSDL_VERSION_1_2;
	        case EdmSchemaVersion::VERSION_2_DOT_0:
	            return ODataConstants::CSDL_VERSION_2_0;
	        case EdmSchemaVersion::VERSION_2_DOT_2:
	            return ODataConstants::CSDL_VERSION_2_2;
	        default:
	            return ODataConstants::CSDL_VERSION_2_2;
        }
    }
private function _getSchemaNamespaceUri ( $ edmSchemaVersion ) { switch ( $ edmSchemaVersion ) { case EdmSchemaVersion :: VERSION_1_DOT_0 : return ODataConstants :: CSDL_VERSION_1_0 ; case EdmSchemaVersion :: VERSION_1_DOT_1 : return ODataConstants :: CSDL_VERSION_1_1 ; case EdmSchemaVersion :: VERSION_1_DOT_2 : return ODataConstants :: CSDL_VERSION_1_2 ; case EdmSchemaVersion :: VERSION_2_DOT_0 : return ODataConstants :: CSDL_VERSION_2_0 ; case EdmSchemaVersion :: VERSION_2_DOT_2 : return ODataConstants :: CSDL_VERSION_2_2 ; default : return ODataConstants :: CSDL_VERSION_2_2 ; } }
Gets the edmx schema namespace uri for the given schema version
Gets the edmx schema namespace uri for the given schema version