A single vocabulary entry in the build-time catalog.
Carries everything the generator needs to fetch, parse, and emit
PHP classes for one vocabulary: the remote XML source, the OData
namespace and canonical alias, and the target PHP namespace under
which the generated classes will be placed.
| Methods |
public
|
__construct(string $namespace, string $alias, string $uri, string $phpNamespace, list<string> $dependencies)
Parameters
| $dependencies |
Aliases of vocabularies this one depends on, e.g. ['Core', 'Validation']
|
|
#
|
public
|
getNamespace(): string
The full OData namespace of this vocabulary,
e.g. "com.sap.vocabularies.UI.v1".
The full OData namespace of this vocabulary,
e.g. "com.sap.vocabularies.UI.v1".
Implements
|
#
|
public
|
getAlias(): string
The canonical alias for this vocabulary as used in CSDL documents,
e.g. "UI". This alias is registered in the…
The canonical alias for this vocabulary as used in CSDL documents,
e.g. "UI". This alias is registered in the VocabularyRegistry so
that term names can be resolved at runtime.
Implements
|
#
|
public
|
getUri(): string
The URI of the vocabulary's CSDL XML source document. The generator
fetches this URI to obtain the Term and ComplexType…
The URI of the vocabulary's CSDL XML source document. The generator
fetches this URI to obtain the Term and ComplexType definitions.
Implements
|
#
|
public
|
getPhpNamespace(): string
The PHP namespace under which the generator places the generated
classes for this vocabulary, e.g.
"LaravelUi5\\OData\…
The PHP namespace under which the generator places the generated
classes for this vocabulary, e.g.
"LaravelUi5\OData\Vocabularies\Ui\V1".
Generated classes for Terms and ComplexTypes are placed directly
in this namespace. The generator derives the class name from the
Term or ComplexType's simple name.
Implements
|
#
|
public
|
getDependencies(): list<string>
The OData namespaces this vocabulary depends on, in no particular
order. The catalog uses this to validate resolution…
The OData namespaces this vocabulary depends on, in no particular
order. The catalog uses this to validate resolution order at
generation time.
Implements
|
#
|
public
|
toReference(): ReferenceInterface
Build an edmx:Reference for this vocabulary entry.
Build an edmx:Reference for this vocabulary entry.
Implements
|
#
|