Methods |
public
|
entity<T is SyncEntityInterface>(class-string<T> $value): static<T>
Entity to which the instance applies (required)
Entity to which the instance applies (required)
|
#
|
public
|
inherit<T is SyncEntityInterface>(SyncSerializeRules<T>|null $value): static<T>
Inherit rules from another instance
Inherit rules from another instance
|
#
|
public
|
recurseRules(bool|null $value = true): $this
Apply path-based rules to nested instances of the entity? (default: true)
Apply path-based rules to nested instances of the entity? (default: true)
|
#
|
public
|
dateFormatter(DateFormatterInterface|null $value): $this
Date formatter applied to the instance
Date formatter applied to the instance
|
#
|
public
|
dynamicProperties(bool|null $value = true): $this
Include dynamic properties when the entity is serialized? (default: true)
Include dynamic properties when the entity is serialized? (default: true)
|
#
|
public
|
sortByKey(bool|null $value = true): $this
Sort serialized entities by key? (default: false)
Sort serialized entities by key? (default: false)
|
#
|
public
|
maxDepth(int|null $value): $this
Maximum depth of nested values (default: 99)
Maximum depth of nested values (default: 99)
|
#
|
public
|
detectRecursion(bool|null $value = true): $this
Detect recursion when nested entities are serialized? (default: true)
Detect recursion when nested entities are serialized? (default: true)
|
#
|
public
|
forSyncStore(bool|null $value = true): $this
Serialize entities for an entity store? (default: false)
Serialize entities for an entity store? (default: false)
|
#
|
public
|
canonicalId(bool|null $value = true): $this
Include canonical identifiers when sync entities are serialized? (default: false)
Include canonical identifiers when sync entities are serialized? (default: false)
|
#
|
public
|
remove(
array<array<(array{string, ...}&array<(Closure(mixed, SyncStoreInterface|null, SyncSerializeRules<TEntity>): mixed)|string|null>)|string>|(array{string, ...}&array<(Closure(mixed, SyncStoreInterface|null, SyncSerializeRules<TEntity>): mixed)|string|null>)|string> $value,
): $this
Values to remove
|
#
|
public
|
replace(
array<array<(array{string, ...}&array<(Closure(mixed, SyncStoreInterface|null, SyncSerializeRules<TEntity>): mixed)|string|null>)|string>|(array{string, ...}&array<(Closure(mixed, SyncStoreInterface|null, SyncSerializeRules<TEntity>): mixed)|string|null>)|string> $value,
): $this
Values to replace
|
#
|