Methods |
public
static
|
getService<T is object>(ContainerInterface $container, class-string<T> $service): static<T>
Get an introspector for a service
Get an introspector for a service
Uses a container to resolve a service to a concrete class and returns an
introspector for it.
Overrides
|
#
|
public
static
|
get<T is object>(class-string<T> $class): static<T>
Get an introspector for a class
Get an introspector for a class
Overrides
|
#
|
public
|
getCreateSyncEntityFromClosure(
bool $strict = false,
): Closure(mixed[], SyncProviderInterface, SyncContextInterface): TClass
Get a closure that creates SyncProviderInterface-serviced instances of the class
from arrays
Get a closure that creates SyncProviderInterface-serviced instances of the class
from arrays
Wraps {@see SyncIntrospector::getCreateSyncEntityFromSignatureClosure()}
in a closure that resolves array signatures to closures on-demand.
Parameters
$strict |
If true , the closure will throw an exception if it
receives any data that would be discarded.
|
|
#
|
public
|
getCreateSyncEntityFromSignatureClosure(
string[] $keys,
bool $strict = false,
): Closure(mixed[], SyncProviderInterface, SyncContextInterface): TClass
Get a closure that creates SyncProviderInterface-serviced instances of the class
from arrays with a given signature
Get a closure that creates SyncProviderInterface-serviced instances of the class
from arrays with a given signature
Parameters
$strict |
If true , throw an exception if any data would be
discarded.
|
|
#
|
public
|
getMagicSyncOperationClosure(
string $method,
SyncProviderInterface $provider,
): (Closure(SyncContextInterface, mixed...): (iterable<SyncEntityInterface>|SyncEntityInterface))|null
Get a closure to perform sync operations on behalf of a provider's
"magic" method
Get a closure to perform sync operations on behalf of a provider's
"magic" method
Returns null if:
- the {@see SyncIntrospector} was not created for a
{@see SyncProviderInterface},
- the {@see SyncProviderInterface} class already has
$method , or
$method doesn't resolve to an unambiguous sync operation on a
{@see SyncEntityInterface} class serviced by the
{@see SyncProviderInterface} class
|
#
|