Methods |
public
static
|
isListOperation(SyncOperation::* $operation): ($operation is SyncOperation::*_LIST ? true : false)
Check if a sync operation is CREATE_LIST, READ_LIST, UPDATE_LIST or
DELETE_LIST
Check if a sync operation is CREATE_LIST, READ_LIST, UPDATE_LIST or
DELETE_LIST
|
#
|
public
static
|
isWriteOperation(SyncOperation::* $operation): ($operation is SyncOperation::READ* ? false : true)
Check if a sync operation is CREATE, UPDATE, DELETE, CREATE_LIST,
UPDATE_LIST or DELETE_LIST
Check if a sync operation is CREATE, UPDATE, DELETE, CREATE_LIST,
UPDATE_LIST or DELETE_LIST
|
#
|
public
static
|
getServicedEntityType<T is SyncEntityInterface>(
class-string<T> $entityType,
SyncProviderInterface $provider,
ContainerInterface $container,
): class-string<T>
With a sync entity type and any non-abstract parents bound to it in a
service container, get the first that is serviced…
With a sync entity type and any non-abstract parents bound to it in a
service container, get the first that is serviced by a provider
Throws
|
#
|
public
static
|
getEntityTypeProvider(
class-string<SyncEntityInterface> $entityType,
?SyncStoreInterface $store = null,
): class-string<SyncProviderInterface>
Get the name of a sync entity type's provider interface
Get the name of a sync entity type's provider interface
|
#
|
public
static
|
getProviderEntityTypes(
class-string<SyncProviderInterface> $provider,
?SyncStoreInterface $store = null,
): array<class-string<SyncEntityInterface>>
Get the names of sync entity types serviced by a provider interface
Get the names of sync entity types serviced by a provider interface
|
#
|
public
static
|
getEntityTypeUri(
class-string<SyncEntityInterface> $entityType,
bool $compact = true,
?SyncStoreInterface $store = null,
): string
Get the canonical URI of a sync entity type
Get the canonical URI of a sync entity type
|
#
|
public
static
|
getStore(?ContainerInterface $container = null): SyncStoreInterface
Get an entity store, creating one if necessary
Get an entity store, creating one if necessary
If a container with a shared {@see SyncStoreInterface} instance is given,
it is returned. Otherwise, {@see Sync::getInstance()} is returned if
loaded, or a new {@see SyncStore} instance is created.
|
#
|