-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: Daniel Coulbourne <[email protected]> Co-Authored-By: Skyler Katz <[email protected]>
- Loading branch information
1 parent
f266dbd
commit 00d713f
Showing
5 changed files
with
114 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace Thunk\Verbs\Lifecycle; | ||
|
||
use Glhd\Bits\Bits; | ||
use Ramsey\Uuid\UuidInterface; | ||
use Symfony\Component\Uid\AbstractUid; | ||
use Thunk\Verbs\Contracts\StoresSnapshots; | ||
use Thunk\Verbs\State; | ||
use Thunk\Verbs\Support\StateCollection; | ||
|
||
class NullSnapshotStore implements StoresSnapshots | ||
{ | ||
public function load(Bits|UuidInterface|AbstractUid|iterable|int|string $id, string $type): State|StateCollection|null | ||
{ | ||
return null; | ||
} | ||
|
||
public function loadSingleton(string $type): ?State | ||
{ | ||
return null; | ||
} | ||
|
||
public function write(array $states): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function delete(Bits|UuidInterface|AbstractUid|int|string ...$ids): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function reset(): bool | ||
{ | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters