repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/ErrorDetected.php
src/Subscription/Engine/ErrorDetected.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Subscription\Engine; use RuntimeException; use function count; use function sprintf; final class ErrorDetected extends RuntimeException { /** @param list<Error> $errors */ public function __construct( public readonly array $errors, ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/AlreadyProcessing.php
src/Subscription/Engine/AlreadyProcessing.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Subscription\Engine; use RuntimeException; final class AlreadyProcessing extends RuntimeException { public function __construct() { parent::__construct('Subscription engine is already processing'); } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/ThrowOnErrorSubscriptionEngine.php
src/Subscription/Engine/ThrowOnErrorSubscriptionEngine.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Subscription\Engine; use Patchlevel\EventSourcing\Subscription\Subscription; final class ThrowOnErrorSubscriptionEngine implements SubscriptionEngine { public function __construct( private readonly SubscriptionEngine $parent, ) { ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/UnexpectedError.php
src/Subscription/Engine/UnexpectedError.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Subscription\Engine; use RuntimeException; final class UnexpectedError extends RuntimeException { }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/GeneratorStream.php
src/Subscription/Engine/GeneratorStream.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Subscription\Engine; use Generator; use IteratorAggregate; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Store\Stream; use Patchlevel\EventSourcing\Store\StreamClosed; /** * @implements IteratorAggregate<Message> * @int...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/SubscriptionEngine.php
src/Subscription/Engine/SubscriptionEngine.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Subscription\Engine; use Patchlevel\EventSourcing\Subscription\Subscription; interface SubscriptionEngine { public function setup(SubscriptionEngineCriteria|null $criteria = null, bool $skipBooting = false): Result; /** * @param positiv...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/DefaultSubscriptionEngine.php
src/Subscription/Engine/DefaultSubscriptionEngine.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Subscription\Engine; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Store\Store; use Patchlevel\EventSourcing\Subscription\RetryStrategy\ClockBasedRetryStrategy; use Patchlevel\EventSourcing\Subscription\RetryStrategy\Condi...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
true
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/Error.php
src/Subscription/Engine/Error.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Subscription\Engine; use Throwable; final class Error { public function __construct( public readonly string $subscriptionId, public readonly string $message, public readonly Throwable $throwable, ) { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/SubscriptionCollection.php
src/Subscription/Engine/SubscriptionCollection.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Subscription\Engine; use Countable; use IteratorAggregate; use Patchlevel\EventSourcing\Subscription\Subscription; use Traversable; use function array_filter; use function array_values; use function count; /** * @interal * @implements IteratorAggr...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/SubscriptionEngineCriteria.php
src/Subscription/Engine/SubscriptionEngineCriteria.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Subscription\Engine; /** @immutable */ final class SubscriptionEngineCriteria { /** * @param list<string>|null $ids * @param list<string>|null $groups */ public function __construct( public readonly array|null $ids = nul...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/EventFilteredStoreMessageLoader.php
src/Subscription/Engine/EventFilteredStoreMessageLoader.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Subscription\Engine; use Patchlevel\EventSourcing\Metadata\Event\EventMetadataFactory; use Patchlevel\EventSourcing\Store\Criteria\Criteria; use Patchlevel\EventSourcing\Store\Criteria\EventsCriterion; use Patchlevel\EventSourcing\Store\Criteria\FromI...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/CatchUpSubscriptionEngine.php
src/Subscription/Engine/CatchUpSubscriptionEngine.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Subscription\Engine; use Patchlevel\EventSourcing\Subscription\Subscription; use function array_merge; use const PHP_INT_MAX; final class CatchUpSubscriptionEngine implements SubscriptionEngine { public function __construct( private rea...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Repository/RunSubscriptionEngineRepositoryManager.php
src/Subscription/Repository/RunSubscriptionEngineRepositoryManager.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Subscription\Repository; use Patchlevel\EventSourcing\Aggregate\AggregateRoot; use Patchlevel\EventSourcing\Repository\Repository; use Patchlevel\EventSourcing\Repository\RepositoryManager; use Patchlevel\EventSourcing\Subscription\Engine\Subscription...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Repository/RunSubscriptionEngineRepository.php
src/Subscription/Repository/RunSubscriptionEngineRepository.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Subscription\Repository; use Patchlevel\EventSourcing\Aggregate\AggregateRoot; use Patchlevel\EventSourcing\Aggregate\AggregateRootId; use Patchlevel\EventSourcing\Repository\Repository; use Patchlevel\EventSourcing\Subscription\Engine\AlreadyProcessi...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/QueryBus/SyncQueryBus.php
src/QueryBus/SyncQueryBus.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\QueryBus; use Psr\Log\LoggerInterface; use function count; use function is_array; use function iterator_to_array; final class SyncQueryBus implements QueryBus { private readonly HandlerProvider $handlerProvider; /** @param iterable<HandlerP...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/QueryBus/HandlerDescriptor.php
src/QueryBus/HandlerDescriptor.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\QueryBus; use Closure; use ReflectionFunction; final class HandlerDescriptor { private readonly Closure $callable; private readonly string $name; public function __construct(callable $callable) { $this->callable = $callable(....
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/QueryBus/QueryBus.php
src/QueryBus/QueryBus.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\QueryBus; interface QueryBus { public function dispatch(object $query): mixed; }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/QueryBus/ServiceHandlerProvider.php
src/QueryBus/ServiceHandlerProvider.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\QueryBus; final class ServiceHandlerProvider implements HandlerProvider { private bool $initialized = false; /** @var array<class-string, list<HandlerDescriptor>> */ private array $handlers = []; /** @param iterable<object> $services...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/QueryBus/InvalidHandleMethod.php
src/QueryBus/InvalidHandleMethod.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\QueryBus; use InvalidArgumentException; use function sprintf; final class InvalidHandleMethod extends InvalidArgumentException { public static function noParameters(string $class, string $method): self { return new self(sprintf('Quer...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/QueryBus/InvalidQueryHandler.php
src/QueryBus/InvalidQueryHandler.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\QueryBus; use InvalidArgumentException; use function sprintf; final class InvalidQueryHandler extends InvalidArgumentException { public static function noHandler(string $queryClass): self { return new self(sprintf('No handler found f...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/QueryBus/ChainHandlerProvider.php
src/QueryBus/ChainHandlerProvider.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\QueryBus; final class ChainHandlerProvider implements HandlerProvider { /** @param iterable<HandlerProvider> $providers */ public function __construct( private readonly iterable $providers, ) { } /** * @param class-st...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/QueryBus/HandlerFinder.php
src/QueryBus/HandlerFinder.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\QueryBus; use Patchlevel\EventSourcing\Attribute\Answer; use ReflectionClass; use Symfony\Component\TypeInfo\Type\ObjectType; use Symfony\Component\TypeInfo\TypeResolver\TypeResolver; final class HandlerFinder { /** * @param class-string $cl...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/QueryBus/HandlerProvider.php
src/QueryBus/HandlerProvider.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\QueryBus; interface HandlerProvider { /** * @param class-string $queryClass * * @return iterable<int, HandlerDescriptor> */ public function handlerForQuery(string $queryClass): iterable; }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/QueryBus/HandlerReference.php
src/QueryBus/HandlerReference.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\QueryBus; final class HandlerReference { /** @param class-string $queryClass */ public function __construct( public readonly string $queryClass, public readonly string $method, public readonly bool $static, ) { ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Cryptography/DoctrineCipherKeyStore.php
src/Cryptography/DoctrineCipherKeyStore.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Cryptography; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Schema\Schema; use Patchlevel\EventSourcing\Schema\DoctrineHelper; use Patchlevel\EventSourcing\Schema\DoctrineSchemaConfigurator; use Patchlevel\Hydrator\Cryptography\Cipher\CipherKey; use...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Clock/FrozenClock.php
src/Clock/FrozenClock.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Clock; use DateTimeImmutable; use Psr\Clock\ClockInterface; use function sprintf; final class FrozenClock implements ClockInterface { public function __construct( private DateTimeImmutable $frozenDateTime, ) { } public funct...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Clock/SystemClock.php
src/Clock/SystemClock.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Clock; use DateTimeImmutable; use Psr\Clock\ClockInterface; final class SystemClock implements ClockInterface { public function now(): DateTimeImmutable { return new DateTimeImmutable(); } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Test/IncrementalRamseyUuidFactory.php
src/Test/IncrementalRamseyUuidFactory.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Test; use DateTimeInterface; use Ramsey\Uuid\Uuid; use Ramsey\Uuid\UuidFactory; use Ramsey\Uuid\UuidInterface; use function sprintf; use function str_pad; use const STR_PAD_LEFT; final class IncrementalRamseyUuidFactory extends UuidFactory { pr...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Serializer/EventSerializer.php
src/Serializer/EventSerializer.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Serializer; interface EventSerializer { /** @param array<string, mixed> $options */ public function serialize(object $event, array $options = []): SerializedEvent; /** @param array<string, mixed> $options */ public function deserializ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Serializer/SerializeException.php
src/Serializer/SerializeException.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Serializer; use RuntimeException; abstract class SerializeException extends RuntimeException { }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Serializer/DefaultEventSerializer.php
src/Serializer/DefaultEventSerializer.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Serializer; use Patchlevel\EventSourcing\Metadata\Event\AttributeEventRegistryFactory; use Patchlevel\EventSourcing\Metadata\Event\EventRegistry; use Patchlevel\EventSourcing\Serializer\Encoder\Encoder; use Patchlevel\EventSourcing\Serializer\Encoder\...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Serializer/SerializedEvent.php
src/Serializer/SerializedEvent.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Serializer; final class SerializedEvent { public function __construct( public readonly string $name, public readonly string $payload, ) { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Serializer/Encoder/JsonEncoder.php
src/Serializer/Encoder/JsonEncoder.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Serializer\Encoder; use JsonException; use function array_key_exists; use function json_decode; use function json_encode; use const JSON_PRETTY_PRINT; use const JSON_THROW_ON_ERROR; final class JsonEncoder implements Encoder { /** * @param...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Serializer/Encoder/Encoder.php
src/Serializer/Encoder/Encoder.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Serializer\Encoder; interface Encoder { public const OPTION_PRETTY_PRINT = 'pretty_print'; /** * @param array<string, mixed> $data * @param array<string, mixed> $options * * @throws EncodeNotPossible */ public fun...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Serializer/Encoder/EncodeNotPossible.php
src/Serializer/Encoder/EncodeNotPossible.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Serializer\Encoder; use Patchlevel\EventSourcing\Serializer\SerializeException; use Throwable; final class EncodeNotPossible extends SerializeException { /** @param array<string, mixed> $data */ public function __construct( private ar...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Serializer/Encoder/DecodeNotPossible.php
src/Serializer/Encoder/DecodeNotPossible.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Serializer\Encoder; use Patchlevel\EventSourcing\Serializer\SerializeException; use Throwable; use function sprintf; final class DecodeNotPossible extends SerializeException { public function __construct( private string $data, Th...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Serializer/Upcast/Upcast.php
src/Serializer/Upcast/Upcast.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Serializer\Upcast; /** @immutable */ final class Upcast { /** @param array<string, mixed> $payload */ public function __construct( public readonly string $eventName, public readonly array $payload, ) { } public fun...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Serializer/Upcast/UpcasterChain.php
src/Serializer/Upcast/UpcasterChain.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Serializer\Upcast; final class UpcasterChain implements Upcaster { /** @param iterable<Upcaster> $upcaster */ public function __construct( private readonly iterable $upcaster, ) { } public function __invoke(Upcast $upcast)...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Serializer/Upcast/Upcaster.php
src/Serializer/Upcast/Upcaster.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Serializer\Upcast; interface Upcaster { public function __invoke(Upcast $upcast): Upcast; }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Serializer/Normalizer/IdNormalizer.php
src/Serializer/Normalizer/IdNormalizer.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Serializer\Normalizer; use Attribute; use Patchlevel\EventSourcing\Aggregate\AggregateRootId; use Patchlevel\Hydrator\Normalizer\InvalidArgument; use Patchlevel\Hydrator\Normalizer\InvalidType; use Patchlevel\Hydrator\Normalizer\Normalizer; use Patchl...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Pipe.php
src/Message/Pipe.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message; use Generator; use IteratorAggregate; use Patchlevel\EventSourcing\Message\Translator\ChainTranslator; use Patchlevel\EventSourcing\Message\Translator\Translator; use Traversable; use function array_values; use function iterator_to_array; /...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/HeaderNotFound.php
src/Message/HeaderNotFound.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message; use RuntimeException; use function sprintf; final class HeaderNotFound extends RuntimeException { public function __construct( public readonly string $name, ) { parent::__construct(sprintf('message header "%s" is not...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Message.php
src/Message/Message.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message; use function array_key_exists; use function array_values; use function assert; use function is_a; /** * @template-covariant T of object = object * @immutable */ final class Message { /** @var array<class-string, object> */ private...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Reducer.php
src/Message/Reducer.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message; use Closure; /** * @template STATE of array<array-key, mixed> * @template OUT of array<array-key, mixed> = STATE */ final class Reducer { /** @var STATE */ private array $initState = []; /** @var array<class-string, list<Clos...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Translator/ReplaceEventTranslator.php
src/Message/Translator/ReplaceEventTranslator.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Translator; use Patchlevel\EventSourcing\Message\Message; /** @template T of object */ final class ReplaceEventTranslator implements Translator { /** @var callable(T $event):object */ private $callable; /** * @param class-st...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Translator/Translator.php
src/Message/Translator/Translator.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Translator; use Patchlevel\EventSourcing\Message\Message; interface Translator { /** @return list<Message> */ public function __invoke(Message $message): array; }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Translator/RecalculatePlayheadTranslator.php
src/Message/Translator/RecalculatePlayheadTranslator.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Translator; use Patchlevel\EventSourcing\Aggregate\AggregateHeader; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Store\Header\PlayheadHeader; use Patchlevel\EventSourcing\Store\Header\StreamNameHeader; use functi...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Translator/ChainTranslator.php
src/Message/Translator/ChainTranslator.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Translator; use Patchlevel\EventSourcing\Message\Message; final class ChainTranslator implements Translator { /** @param iterable<Translator> $translators */ public function __construct( private readonly iterable $translators,...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Translator/ExcludeEventTranslator.php
src/Message/Translator/ExcludeEventTranslator.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Translator; use Patchlevel\EventSourcing\Message\Message; final class ExcludeEventTranslator implements Translator { /** @param list<class-string> $classes */ public function __construct( private readonly array $classes, )...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Translator/AggregateToStreamHeaderTranslator.php
src/Message/Translator/AggregateToStreamHeaderTranslator.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Translator; use Patchlevel\EventSourcing\Aggregate\AggregateHeader; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Store\Header\PlayheadHeader; use Patchlevel\EventSourcing\Store\Header\RecordedOnHeader; use Patchle...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Translator/UntilEventTranslator.php
src/Message/Translator/UntilEventTranslator.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Translator; use DateTimeImmutable; use Patchlevel\EventSourcing\Aggregate\AggregateHeader; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Store\Header\RecordedOnHeader; final class UntilEventTranslator implements T...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Translator/FilterEventTranslator.php
src/Message/Translator/FilterEventTranslator.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Translator; use Patchlevel\EventSourcing\Message\Message; final class FilterEventTranslator implements Translator { /** @var callable(object $event):bool */ private $callable; /** @param callable(object $event):bool $callable */ ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Translator/IncludeEventWithHeaderTranslator.php
src/Message/Translator/IncludeEventWithHeaderTranslator.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Translator; use Patchlevel\EventSourcing\Message\Message; final class IncludeEventWithHeaderTranslator implements Translator { /** @param class-string $header */ public function __construct( private readonly string $header, ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Translator/ExcludeEventWithHeaderTranslator.php
src/Message/Translator/ExcludeEventWithHeaderTranslator.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Translator; use Patchlevel\EventSourcing\Message\Message; final class ExcludeEventWithHeaderTranslator implements Translator { /** @param class-string $header */ public function __construct( private readonly string $header, ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Translator/IncludeEventTranslator.php
src/Message/Translator/IncludeEventTranslator.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Translator; use Patchlevel\EventSourcing\Message\Message; final class IncludeEventTranslator implements Translator { /** @param list<class-string> $classes */ public function __construct( private readonly array $classes, )...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Translator/ClosureMiddleware.php
src/Message/Translator/ClosureMiddleware.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Translator; use Closure; use Patchlevel\EventSourcing\Message\Message; final class ClosureMiddleware implements Translator { /** @param Closure(Message): list<Message> $callable */ public function __construct( private readonly...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Serializer/HeadersSerializer.php
src/Message/Serializer/HeadersSerializer.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Serializer; interface HeadersSerializer { /** * @param list<object> $headers * @param array<string, mixed> $options */ public function serialize(array $headers, array $options = []): string; /** * @para...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Serializer/DefaultHeadersSerializer.php
src/Message/Serializer/DefaultHeadersSerializer.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Serializer; use Patchlevel\EventSourcing\Metadata\Message\AttributeMessageHeaderRegistryFactory; use Patchlevel\EventSourcing\Metadata\Message\MessageHeaderRegistry; use Patchlevel\EventSourcing\Serializer\Encoder\Encoder; use Patchlevel\Event...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Message/Serializer/InvalidArgument.php
src/Message/Serializer/InvalidArgument.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Message\Serializer; use RuntimeException; final class InvalidArgument extends RuntimeException { }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/SnapshotVersionInvalid.php
src/Snapshot/SnapshotVersionInvalid.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot; use function sprintf; final class SnapshotVersionInvalid extends SnapshotException { public function __construct(string $key) { parent::__construct( sprintf( 'snapshot version with the key "%s" is...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/SnapshotException.php
src/Snapshot/SnapshotException.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot; use RuntimeException; abstract class SnapshotException extends RuntimeException { }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/Snapshot.php
src/Snapshot/Snapshot.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot; use Patchlevel\EventSourcing\Aggregate\AggregateRoot; final class Snapshot { /** * @param class-string<AggregateRoot> $aggregate * @param array<string, mixed> $payload */ public function __construct( pr...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/DefaultSnapshotStore.php
src/Snapshot/DefaultSnapshotStore.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot; use Patchlevel\EventSourcing\Aggregate\AggregateRoot; use Patchlevel\EventSourcing\Aggregate\AggregateRootId; use Patchlevel\EventSourcing\Metadata\AggregateRoot\AggregateRootMetadataAwareMetadataFactory; use Patchlevel\EventSourcing\Metadat...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/AdapterNotFound.php
src/Snapshot/AdapterNotFound.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot; use function sprintf; final class AdapterNotFound extends SnapshotException { public function __construct(string $adapterName) { parent::__construct( sprintf( 'adapter with the name "%s" not found...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/SnapshotStore.php
src/Snapshot/SnapshotStore.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot; use Patchlevel\EventSourcing\Aggregate\AggregateRoot; use Patchlevel\EventSourcing\Aggregate\AggregateRootId; use Patchlevel\EventSourcing\Snapshot\Adapter\SnapshotNotFound; interface SnapshotStore { /** * @throws SnapshotNotConfig...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/SnapshotNotConfigured.php
src/Snapshot/SnapshotNotConfigured.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot; use Patchlevel\EventSourcing\Aggregate\AggregateRoot; use function sprintf; final class SnapshotNotConfigured extends SnapshotException { /** @param class-string<AggregateRoot> $aggregateRootClass */ public function __construct(str...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/ArrayAdapterRepository.php
src/Snapshot/ArrayAdapterRepository.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot; use Patchlevel\EventSourcing\Snapshot\Adapter\SnapshotAdapter; use function array_key_exists; final class ArrayAdapterRepository implements AdapterRepository { /** @param array<string, SnapshotAdapter> $snapshotAdapters */ public f...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/AdapterRepository.php
src/Snapshot/AdapterRepository.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot; use Patchlevel\EventSourcing\Snapshot\Adapter\SnapshotAdapter; interface AdapterRepository { public function get(string $name): SnapshotAdapter; }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/SnapshotNotFound.php
src/Snapshot/SnapshotNotFound.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot; use Patchlevel\EventSourcing\Aggregate\AggregateRoot; use Patchlevel\EventSourcing\Aggregate\AggregateRootId; use Throwable; use function sprintf; final class SnapshotNotFound extends SnapshotException { /** @param class-string<Aggrega...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/Adapter/Psr16SnapshotAdapter.php
src/Snapshot/Adapter/Psr16SnapshotAdapter.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot\Adapter; use Psr\SimpleCache\CacheInterface; final class Psr16SnapshotAdapter implements SnapshotAdapter { public function __construct( private readonly CacheInterface $cache, ) { } /** @param array<string, mixed> $d...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/Adapter/SnapshotAdapter.php
src/Snapshot/Adapter/SnapshotAdapter.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot\Adapter; interface SnapshotAdapter { /** @param array<string, mixed> $data */ public function save(string $key, array $data): void; /** * @return array<string, mixed> * * @throws SnapshotNotFound */ public...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/Adapter/Psr6SnapshotAdapter.php
src/Snapshot/Adapter/Psr6SnapshotAdapter.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot\Adapter; use Psr\Cache\CacheItemPoolInterface; final class Psr6SnapshotAdapter implements SnapshotAdapter { public function __construct( private readonly CacheItemPoolInterface $cache, ) { } /** @param array<string, ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/Adapter/InMemorySnapshotAdapter.php
src/Snapshot/Adapter/InMemorySnapshotAdapter.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot\Adapter; use function array_key_exists; final class InMemorySnapshotAdapter implements SnapshotAdapter { /** @var array<string, array<string, mixed>> */ private array $snapshots = []; /** @param array<string, mixed> $data */ ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Snapshot/Adapter/SnapshotNotFound.php
src/Snapshot/Adapter/SnapshotNotFound.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Snapshot\Adapter; use Patchlevel\EventSourcing\Snapshot\SnapshotException; use function sprintf; final class SnapshotNotFound extends SnapshotException { public function __construct(string $key) { parent::__construct( spr...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/OutputStyle.php
src/Console/OutputStyle.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console; use Patchlevel\EventSourcing\Aggregate\AggregateHeader; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Message\Serializer\HeadersSerializer; use Patchlevel\EventSourcing\Serializer\Encoder\Encoder; use Patchlevel\E...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/InvalidArgumentGiven.php
src/Console/InvalidArgumentGiven.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console; use InvalidArgumentException; use function get_debug_type; use function sprintf; final class InvalidArgumentGiven extends InvalidArgumentException { public function __construct( private readonly mixed $value, private rea...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/InputHelper.php
src/Console/InputHelper.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console; use function array_map; use function array_values; use function is_array; use function is_bool; use function is_int; use function is_numeric; use function is_string; final class InputHelper { public static function nullableString(mixed $...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/DoctrineHelper.php
src/Console/DoctrineHelper.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console; use Doctrine\DBAL\Connection; use Doctrine\DBAL\DriverManager; use InvalidArgumentException; use function in_array; /** @final */ class DoctrineHelper { public function databaseName(Connection $connection): string { $params ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/SubscriptionRunCommand.php
src/Console/Command/SubscriptionRunCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Patchlevel\EventSourcing\Console\InputHelper; use Patchlevel\EventSourcing\Store\Store; use Patchlevel\EventSourcing\Store\SubscriptionStore; use Patchlevel\EventSourcing\Subscription\Engine\SubscriptionEngine; use Patchlevel\Work...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/ShowCommand.php
src/Console/Command/ShowCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Patchlevel\EventSourcing\Console\InputHelper; use Patchlevel\EventSourcing\Console\OutputStyle; use Patchlevel\EventSourcing\Message\Serializer\HeadersSerializer; use Patchlevel\EventSourcing\Serializer\EventSerializer; use Patchl...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/SubscriptionSetupCommand.php
src/Console/Command/SubscriptionSetupCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Patchlevel\EventSourcing\Console\InputHelper; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Ou...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/DebugCommand.php
src/Console/Command/DebugCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Patchlevel\EventSourcing\Console\OutputStyle; use Patchlevel\EventSourcing\Metadata\AggregateRoot\AggregateRootRegistry; use Patchlevel\EventSourcing\Metadata\Event\EventRegistry; use Patchlevel\EventSourcing\Subscription\Subscrib...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/ShowAggregateCommand.php
src/Console/Command/ShowAggregateCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Patchlevel\EventSourcing\Console\InputHelper; use Patchlevel\EventSourcing\Console\OutputStyle; use Patchlevel\EventSourcing\Message\Serializer\HeadersSerializer; use Patchlevel\EventSourcing\Metadata\AggregateRoot\AggregateRootMe...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/WatchCommand.php
src/Console/Command/WatchCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Patchlevel\EventSourcing\Console\InputHelper; use Patchlevel\EventSourcing\Console\OutputStyle; use Patchlevel\EventSourcing\Message\Serializer\HeadersSerializer; use Patchlevel\EventSourcing\Serializer\EventSerializer; use Patchl...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/SubscriptionBootCommand.php
src/Console/Command/SubscriptionBootCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Closure; use Patchlevel\EventSourcing\Console\InputHelper; use Patchlevel\EventSourcing\Subscription\Engine\SubscriptionEngine; use Patchlevel\Worker\DefaultWorker; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Co...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/SchemaCreateCommand.php
src/Console/Command/SchemaCreateCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Patchlevel\EventSourcing\Console\InputHelper; use Patchlevel\EventSourcing\Console\OutputStyle; use Patchlevel\EventSourcing\Schema\DryRunSchemaDirector; use Patchlevel\EventSourcing\Schema\SchemaDirector; use Symfony\Component\Co...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/SubscriptionCommand.php
src/Console/Command/SubscriptionCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Patchlevel\EventSourcing\Console\InputHelper; use Patchlevel\EventSourcing\Subscription\Engine\SubscriptionEngine; use Patchlevel\EventSourcing\Subscription\Engine\SubscriptionEngineCriteria; use Symfony\Component\Console\Command\...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/SubscriptionRemoveCommand.php
src/Console/Command/SubscriptionRemoveCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Patchlevel\EventSourcing\Console\OutputStyle; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; #[AsCommand( 'event-so...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/SubscriptionTeardownCommand.php
src/Console/Command/SubscriptionTeardownCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; #[AsCommand( 'event-sourcing:subscription:teardown', 'Shut down and ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/DatabaseCreateCommand.php
src/Console/Command/DatabaseCreateCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Doctrine\DBAL\Connection; use Patchlevel\EventSourcing\Console\DoctrineHelper; use Patchlevel\EventSourcing\Console\InputHelper; use Patchlevel\EventSourcing\Console\OutputStyle; use Symfony\Component\Console\Attribute\AsCommand; ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/SchemaDropCommand.php
src/Console/Command/SchemaDropCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Patchlevel\EventSourcing\Console\InputHelper; use Patchlevel\EventSourcing\Console\OutputStyle; use Patchlevel\EventSourcing\Schema\DryRunSchemaDirector; use Patchlevel\EventSourcing\Schema\SchemaDirector; use Symfony\Component\Co...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/SubscriptionPauseCommand.php
src/Console/Command/SubscriptionPauseCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; #[AsCommand( 'event-sourcing:subscription:pause', 'Set subscription ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/SchemaUpdateCommand.php
src/Console/Command/SchemaUpdateCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Patchlevel\EventSourcing\Console\InputHelper; use Patchlevel\EventSourcing\Console\OutputStyle; use Patchlevel\EventSourcing\Schema\DryRunSchemaDirector; use Patchlevel\EventSourcing\Schema\SchemaDirector; use Symfony\Component\Co...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/StoreMigrateCommand.php
src/Console/Command/StoreMigrateCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Patchlevel\EventSourcing\Console\InputHelper; use Patchlevel\EventSourcing\Console\OutputStyle; use Patchlevel\EventSourcing\Message\Pipe; use Patchlevel\EventSourcing\Message\Translator\Translator; use Patchlevel\EventSourcing\St...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/SubscriptionReactivateCommand.php
src/Console/Command/SubscriptionReactivateCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; #[AsCommand( 'event-sourcing:subscription:reactivate', 'Reactivate s...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/SubscriptionStatusCommand.php
src/Console/Command/SubscriptionStatusCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Patchlevel\EventSourcing\Console\InputHelper; use Patchlevel\EventSourcing\Console\OutputStyle; use Patchlevel\EventSourcing\Subscription\Store\SubscriptionNotFound; use Patchlevel\EventSourcing\Subscription\Subscription; use Patc...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Console/Command/DatabaseDropCommand.php
src/Console/Command/DatabaseDropCommand.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Console\Command; use Doctrine\DBAL\Connection; use Patchlevel\EventSourcing\Console\DoctrineHelper; use Patchlevel\EventSourcing\Console\InputHelper; use Patchlevel\EventSourcing\Console\OutputStyle; use Symfony\Component\Console\Attribute\AsCommand; ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Aggregate/CustomId.php
src/Aggregate/CustomId.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Aggregate; final class CustomId implements AggregateRootId { use CustomIdBehaviour; }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Aggregate/AggregateException.php
src/Aggregate/AggregateException.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Aggregate; use RuntimeException; abstract class AggregateException extends RuntimeException { }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Aggregate/AggregateRootId.php
src/Aggregate/AggregateRootId.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Aggregate; use Patchlevel\EventSourcing\Serializer\Normalizer\IdNormalizer; #[IdNormalizer] interface AggregateRootId { public function toString(): string; public static function fromString(string $id): self; }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false