| Methods |
public
|
__construct(
string $namespace,
string $name,
?EntityTypeInterface $baseType = null,
bool $isAbstract = false,
bool $isOpen = false,
bool $hasStream = false,
list<PropertyInterface> $key = [],
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(): ?EntityTypeInterface
The base entity type this type derives from, or null for
a root type.
The base entity 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
|
hasStream(): bool
Whether this entity type is a media entity — i.e. it
represents a stream of binary data with associated metadata.
Whether this entity type is a media entity — i.e. it
represents a stream of binary data with associated metadata.
Implements
|
#
|
public
|
getKey(): array
The properties that form the key of this entity type.
The properties that form the key of this entity type.
For derived types the key is inherited from the root type;
this method returns that inherited key rather than an empty
collection. Returns an empty array only for abstract base
types that defer key declaration to their subtypes.
The order of properties in the returned list is significant
and matches the CSDL declaration order.
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 type,
not including navigation properties inherited from a base…
All navigation properties declared directly on this type,
not including navigation properties inherited from a base type.
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.
Returns null when no navigation property with that name
exists anywhere in the hierarchy.
Implements
|
#
|