You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Facade/Sync.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
useLkrms\Concept\Facade;
6
6
useLkrms\Store\Concept\SqliteStore;
7
7
useLkrms\Sync\Contract\ISyncClassResolver;
8
+
useLkrms\Sync\Contract\ISyncContext;
8
9
useLkrms\Sync\Contract\ISyncEntity;
9
10
useLkrms\Sync\Contract\ISyncProvider;
10
11
useLkrms\Sync\Support\DeferredSyncEntity;
@@ -26,7 +27,7 @@
26
27
* @method static SyncStore entity(int $providerId, class-string<ISyncEntity> $entityType, int|string $entityId, ISyncEntity $entity) Register a sync entity (see {@see SyncStore::entity()})
27
28
* @method static SyncStore entityType(class-string<ISyncEntity> $entity) Register a sync entity type and set its ID (unless already registered) (see {@see SyncStore::entityType()})
28
29
* @method static SyncStore error(SyncError|ErrorBuilder $error, bool $deduplicate = false, bool $toConsole = false) Report an error that occurred during a sync operation
29
-
* @method static ISyncEntity|null getEntity(int $providerId, class-string<ISyncEntity> $entityType, int|string $entityId) Get a previously registered sync entity
30
+
* @method static ISyncEntity|DeferredSyncEntity|null getEntity(int $providerId, class-string<ISyncEntity> $entityType, int|string $entityId, ?ISyncContext $context = null) Get a previously registered sync entity
30
31
* @method static string|null getEntityTypeNamespace(class-string<ISyncEntity> $entity) Get the namespace of a sync entity type (see {@see SyncStore::getEntityTypeNamespace()})
31
32
* @method static string|null getEntityTypeUri(class-string<ISyncEntity> $entity, bool $compact = true) Get the canonical URI of a sync entity type (see {@see SyncStore::getEntityTypeUri()})
32
33
* @method static SyncErrorCollection getErrors() Get sync operation errors recorded so far
@@ -38,6 +39,7 @@
38
39
* @method static bool isOpen() Check if a database is open
0 commit comments