Methods |
public
|
entity<T is SyncEntityInterface>(class-string<T> $value): static<T, TProvider>
The entity being serviced
The entity being serviced
|
#
|
public
|
provider<T is DbSyncProvider>(T $value): static<TEntity, T>
The provider servicing the entity
The provider servicing the entity
|
#
|
public
|
pipelineFromBackend<T is SyncEntityInterface>(
PipelineInterface<mixed[], T, SyncPipelineArgument>|null $value,
): static<T, TProvider>
Pipeline that maps provider data to a serialized entity, or `null` if mapping is not required
Pipeline that maps provider data to a serialized entity, or null if mapping is not required
|
#
|
public
|
pipelineToBackend<T is SyncEntityInterface>(
PipelineInterface<T, mixed[], SyncPipelineArgument>|null $value,
): static<T, TProvider>
Pipeline that maps a serialized entity to provider data, or `null` if mapping is not required
Pipeline that maps a serialized entity to provider data, or null if mapping is not required
|
#
|
public
|
operations(array<SyncOperation::*> $value): $this
Supported sync operations
Supported sync operations
|
#
|
public
|
table(?string $value): $this
Set DbSyncDefinition::$Table
Set DbSyncDefinition::$Table
|
#
|
public
|
conformity(ListConformity::* $value): $this
Conformity level of data returned by the provider for this entity (see {@see AbstractSyncDefinition::$Conformity})
Conformity level of data returned by the provider for this entity (see {@see AbstractSyncDefinition::$Conformity})
|
#
|
public
|
filterPolicy(FilterPolicy::*|null $value): $this
Action to take when filters are not claimed by the provider (see {@see AbstractSyncDefinition::$FilterPolicy})
Action to take when filters are not claimed by the provider (see {@see AbstractSyncDefinition::$FilterPolicy})
|
#
|
public
|
overrides(
array<int-mask-of<SyncOperation::*>, Closure(DbSyncDefinition<TEntity, TProvider>, SyncOperation::*, SyncContextInterface, mixed...): (iterable<TEntity>|TEntity)> $value,
): $this
Array that maps sync operations to closures that override other implementations (see {@see AbstractSyncDefinition::…
Array that maps sync operations to closures that override other implementations (see {@see AbstractSyncDefinition::$Overrides})
|
#
|
public
|
keyMap(array<array-key, array-key|array-key[]>|null $value): $this
Array that maps keys to properties for entity data returned by the provider (see {@see AbstractSyncDefinition::$KeyMap})
Array that maps keys to properties for entity data returned by the provider (see {@see AbstractSyncDefinition::$KeyMap})
|
#
|
public
|
keyMapFlags(int-mask-of<ArrayMapperInterface::*> $value): $this
Array mapper flags used if a key map is provided
Array mapper flags used if a key map is provided
|
#
|
public
|
readFromList(bool $value = true): $this
Perform READ operations by iterating over entities returned by READ_LIST (default: false; see {@see…
Perform READ operations by iterating over entities returned by READ_LIST (default: false; see {@see AbstractSyncDefinition::$ReadFromList})
|
#
|
public
|
returnEntitiesFrom(EntitySource::*|null $value): $this
Source of entity data for the return value of a successful CREATE, UPDATE or DELETE operation
Source of entity data for the return value of a successful CREATE, UPDATE or DELETE operation
|
#
|