| Methods |
public
|
__construct(
string $namespace,
string $name,
?ComplexTypeInterface $baseType = null,
bool $isAbstract = false,
bool $isOpen = false,
list<PropertyInterface> $declaredProperties = [],
list<NavigationPropertyInterface> $declaredNavigationProperties = [],
list<AnnotationInterface> $annotations = [],
)
|
#
|
public
|
getName(): string
The unqualified name of this element within its parent scope.
The unqualified name of this element within its parent scope.
Must conform to the OData SimpleIdentifier production rule:
a non-empty string of at most 128 characters, starting with
a letter or underscore, followed by letters, digits, or underscores.
Implements
|
#
|
public
|
getQualifiedName(): string
The fully qualified name of this type including its namespace,
e.g. "MyService.Customer" or "Edm.String".
The fully qualified name of this type including its namespace,
e.g. "MyService.Customer" or "Edm.String".
Implements
|
#
|
public
|
getBaseType(): ?ComplexTypeInterface
The base complex type this type derives from, or null for
a root type.
The base complex type this type derives from, or null for
a root type.
Implements
|
#
|
public
|
isAbstract(): bool
Whether this type is abstract and may not be instantiated
directly.
Whether this type is abstract and may not be instantiated
directly.
Implements
|
#
|
public
|
isOpen(): bool
Whether this type is open, permitting dynamic properties
whose names and types are not declared in CSDL.
Whether this type is open, permitting dynamic properties
whose names and types are not declared in CSDL.
Implements
|
#
|
public
|
getDeclaredProperties(): array
All structural properties declared directly on this type,
not including properties inherited from a base type.
All structural properties declared directly on this type,
not including properties inherited from a base type.
Implements
|
#
|
public
|
getProperty(string $name): ?PropertyInterface
Returns a structural property by name, searching this type
and all base types in the inheritance chain.
Returns a structural property by name, searching this type
and all base types in the inheritance chain.
Returns null when no property with that name exists anywhere
in the hierarchy.
Implements
|
#
|
public
|
getDeclaredNavigationProperties(): array
All navigation properties declared directly on this complex type.
All navigation properties declared directly on this complex type.
Navigation properties on complex types are permitted by the spec
but uncommon. This method returns an empty array for types that
declare none.
Implements
|
#
|
public
|
getNavigationProperty(string $name): ?NavigationPropertyInterface
Returns a navigation property by name, searching this type
and all base types in the inheritance chain.
Returns a navigation property by name, searching this type
and all base types in the inheritance chain.
Implements
|
#
|