| Methods |
public
|
__construct(
string $namespace,
?string $alias = null,
list<EntityTypeInterface> $entityTypes = [],
list<ComplexTypeInterface> $complexTypes = [],
list<EnumTypeInterface> $enumTypes = [],
list<TypeDefinitionInterface> $typeDefinitions = [],
list<FunctionInterface> $functions = [],
list<AnnotationInterface> $annotations = [],
)
Parameters
| $functions |
all overloads flat; getFunctions() groups by name
|
|
#
|
public
|
getNamespace(): string
The full namespace of this schema, e.g. "MyService.Data".
The full namespace of this schema, e.g. "MyService.Data".
Implements
|
#
|
public
|
getAlias(): ?string
The optional alias for this schema's namespace, e.g. "self".
The optional alias for this schema's namespace, e.g. "self".
Implements
|
#
|
public
|
getEntityTypes(): array
All entity types declared in this schema.
All entity types declared in this schema.
Implements
|
#
|
public
|
getEntityType(string $name): ?EntityTypeInterface
Returns an entity type by its simple (unqualified) name,
or null when not found.
Returns an entity type by its simple (unqualified) name,
or null when not found.
Implements
|
#
|
public
|
getComplexTypes(): array
All complex types declared in this schema.
All complex types declared in this schema.
Implements
|
#
|
public
|
getComplexType(string $name): ?ComplexTypeInterface
Returns a complex type by its simple name, or null when not found.
Returns a complex type by its simple name, or null when not found.
Implements
|
#
|
public
|
getEnumTypes(): array
All enum types declared in this schema.
All enum types declared in this schema.
Implements
|
#
|
public
|
getEnumType(string $name): ?EnumTypeInterface
Returns an enum type by its simple name, or null when not found.
Returns an enum type by its simple name, or null when not found.
Implements
|
#
|
public
|
getTypeDefinitions(): array
All type definitions declared in this schema.
All type definitions declared in this schema.
Implements
|
#
|
public
|
getTypeDefinition(string $name): ?TypeDefinitionInterface
Returns a type definition by its simple name, or null when
not found.
Returns a type definition by its simple name, or null when
not found.
Implements
|
#
|
public
|
getFunctions(): array
All function overloads declared in this schema, grouped by name.
All function overloads declared in this schema, grouped by name.
The array key is the simple function name; the value is a list
of all overloads with that name. Multiple overloads are possible
per the spec.
Implements
|
#
|
public
|
getFunction(string $name): array
Returns all overloads of the function with the given simple name,
or an empty array when no such function exists in…
Returns all overloads of the function with the given simple name,
or an empty array when no such function exists in this schema.
Implements
|
#
|