1: <?php
2:
3: declare(strict_types=1);
4:
5: namespace LaravelUi5\OData\Edm\Contracts;
6:
7: /**
8: * A schema namespace included from a referenced external document.
9: *
10: * An Include brings a specific namespace from the referenced document
11: * into the scope of the referencing document, optionally under an
12: * alias. All named elements in the included namespace become
13: * addressable by their qualified name — or by alias-qualified name
14: * when an alias is declared.
15: *
16: * @see OData CSDL XML v4.01 §4.2 (Included Schema)
17: */
18: interface IncludedSchemaInterface
19: {
20: /**
21: * The namespace of the schema being included,
22: * e.g. "Org.OData.Core.V1".
23: */
24: public function getNamespace(): string;
25:
26: /**
27: * The alias under which this namespace is available in the
28: * referencing document, e.g. "Core". Null when no alias is
29: * declared.
30: *
31: * @see OData CSDL XML v4.01 §4.2
32: */
33: public function getAlias(): ?string;
34: }
35: