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/Metadata/Subscriber/ArgumentTypeNotSupported.php | src/Metadata/Subscriber/ArgumentTypeNotSupported.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Subscriber;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class ArgumentTypeNotSupported extends MetadataException
{
public static function missingType(string $class, string $method, string $argume... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Subscriber/SubscriberMetadataFactory.php | src/Metadata/Subscriber/SubscriberMetadataFactory.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Subscriber;
interface SubscriberMetadataFactory
{
/** @param class-string $subscriber */
public function metadata(string $subscriber): SubscriberMetadata;
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Subscriber/DuplicateSetupMethod.php | src/Metadata/Subscriber/DuplicateSetupMethod.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Subscriber;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class DuplicateSetupMethod extends MetadataException
{
/** @param class-string $subscriber */
public function __construct(string $subsc... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Subscriber/Psr6SubscriberMetadataFactory.php | src/Metadata/Subscriber/Psr6SubscriberMetadataFactory.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Subscriber;
use Psr\Cache\CacheItemPoolInterface;
use function assert;
final class Psr6SubscriberMetadataFactory implements SubscriberMetadataFactory
{
public function __construct(
private readonly SubscriberMetadataFactory $sub... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Subscriber/Psr16SubscriberMetadataFactory.php | src/Metadata/Subscriber/Psr16SubscriberMetadataFactory.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Subscriber;
use Psr\SimpleCache\CacheInterface;
final class Psr16SubscriberMetadataFactory implements SubscriberMetadataFactory
{
public function __construct(
private readonly SubscriberMetadataFactory $subscriberMetadataFactory,... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Subscriber/SubscriberMetadata.php | src/Metadata/Subscriber/SubscriberMetadata.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Subscriber;
use Patchlevel\EventSourcing\Subscription\RunMode;
use Patchlevel\EventSourcing\Subscription\Subscription;
final class SubscriberMetadata
{
public function __construct(
public readonly string $id,
public reado... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Subscriber/ArgumentMetadata.php | src/Metadata/Subscriber/ArgumentMetadata.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Subscriber;
final class ArgumentMetadata
{
public function __construct(
public readonly string $name,
public readonly string $type,
) {
}
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Subscriber/ClassIsNotASubscriber.php | src/Metadata/Subscriber/ClassIsNotASubscriber.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Subscriber;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class ClassIsNotASubscriber extends MetadataException
{
/** @param class-string $class */
public function __construct(string $class)
... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Subscriber/DuplicateTeardownMethod.php | src/Metadata/Subscriber/DuplicateTeardownMethod.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Subscriber;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class DuplicateTeardownMethod extends MetadataException
{
/** @param class-string $subscriber */
public function __construct(string $su... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Subscriber/DuplicateFailedMethod.php | src/Metadata/Subscriber/DuplicateFailedMethod.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Subscriber;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class DuplicateFailedMethod extends MetadataException
{
/** @param class-string $subscriber */
public function __construct(string $subs... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Subscriber/SubscribeMethodMetadata.php | src/Metadata/Subscriber/SubscribeMethodMetadata.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Subscriber;
final class SubscribeMethodMetadata
{
/** @param list<ArgumentMetadata> $arguments */
public function __construct(
public readonly string $name,
public readonly array $arguments = [],
) {
}
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Message/HeaderClassNotRegistered.php | src/Metadata/Message/HeaderClassNotRegistered.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Message;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class HeaderClassNotRegistered extends MetadataException
{
public function __construct(string $headerClass)
{
parent::__construct(... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Message/MessageHeaderRegistry.php | src/Metadata/Message/MessageHeaderRegistry.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Message;
use Patchlevel\EventSourcing\Aggregate\AggregateHeader;
use Patchlevel\EventSourcing\Store\ArchivedHeader;
use Patchlevel\EventSourcing\Store\Header\EventIdHeader;
use Patchlevel\EventSourcing\Store\Header\IndexHeader;
use Patchlevel... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Message/HeaderNameNotRegistered.php | src/Metadata/Message/HeaderNameNotRegistered.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Message;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class HeaderNameNotRegistered extends MetadataException
{
public function __construct(string $name)
{
parent::__construct(
... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Message/AttributeMessageHeaderRegistryFactory.php | src/Metadata/Message/AttributeMessageHeaderRegistryFactory.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Message;
use Patchlevel\EventSourcing\Attribute\Header;
use Patchlevel\EventSourcing\Metadata\ClassFinder;
use ReflectionClass;
use function count;
final class AttributeMessageHeaderRegistryFactory implements MessageHeaderRegistryFactory
{
... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/Message/MessageHeaderRegistryFactory.php | src/Metadata/Message/MessageHeaderRegistryFactory.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\Message;
interface MessageHeaderRegistryFactory
{
/** @param list<string> $paths */
public function create(array $paths): MessageHeaderRegistry;
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/AggregateRootRegistry.php | src/Metadata/AggregateRoot/AggregateRootRegistry.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Aggregate\AggregateRoot;
use function array_flip;
use function array_key_exists;
final class AggregateRootRegistry
{
/** @var array<string, class-string<AggregateRoot>> */
private array $n... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/AggregateRootMetadataAwareMetadataFactory.php | src/Metadata/AggregateRoot/AggregateRootMetadataAwareMetadataFactory.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Aggregate\AggregateRoot;
use Patchlevel\EventSourcing\Aggregate\AggregateRootMetadataAware;
use function is_a;
final class AggregateRootMetadataAwareMetadataFactory implements AggregateRootMetadat... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/ArgumentTypeIsNotAClass.php | src/Metadata/AggregateRoot/ArgumentTypeIsNotAClass.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class ArgumentTypeIsNotAClass extends MetadataException
{
public function __construct(string $methodName, string $type)
{
pa... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/AttributeAggregateRootMetadataFactory.php | src/Metadata/AggregateRoot/AttributeAggregateRootMetadataFactory.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Aggregate\AggregateRoot;
use Patchlevel\EventSourcing\Attribute\Aggregate;
use Patchlevel\EventSourcing\Attribute\Apply;
use Patchlevel\EventSourcing\Attribute\ChildAggregate;
use Patchlevel\EventSo... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/Snapshot.php | src/Metadata/AggregateRoot/Snapshot.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
final class Snapshot
{
public function __construct(
public readonly string $store,
public readonly int|null $batch = null,
public readonly string|null $version = null,
) {
}
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/AggregateRootMetadata.php | src/Metadata/AggregateRoot/AggregateRootMetadata.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Aggregate\AggregateRoot;
use function str_contains;
use function str_replace;
/** @template T of AggregateRoot */
final class AggregateRootMetadata
{
public readonly string $streamName;
p... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/DuplicateEmptyApplyAttribute.php | src/Metadata/AggregateRoot/DuplicateEmptyApplyAttribute.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class DuplicateEmptyApplyAttribute extends MetadataException
{
public function __construct(string $methodName)
{
parent::__c... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/AggregateRootClassNotRegistered.php | src/Metadata/AggregateRoot/AggregateRootClassNotRegistered.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class AggregateRootClassNotRegistered extends MetadataException
{
public function __construct(string $aggregateRootClass)
{
... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/MultipleDataSubjectId.php | src/Metadata/AggregateRoot/MultipleDataSubjectId.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class MultipleDataSubjectId extends MetadataException
{
public function __construct(string $firstProperty, string $secondProperty)
{... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/ClassIsNotAnAggregate.php | src/Metadata/AggregateRoot/ClassIsNotAnAggregate.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class ClassIsNotAnAggregate extends MetadataException
{
/** @param class-string $class */
public function __construct(string $class)... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/MixedApplyAttributeUsage.php | src/Metadata/AggregateRoot/MixedApplyAttributeUsage.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class MixedApplyAttributeUsage extends MetadataException
{
public function __construct(string $methodName)
{
parent::__const... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/NoAggregateRoot.php | src/Metadata/AggregateRoot/NoAggregateRoot.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class NoAggregateRoot extends MetadataException
{
/** @param class-string $aggregateRootClass */
public function __construct(string ... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/AggregateRootIdNotFound.php | src/Metadata/AggregateRoot/AggregateRootIdNotFound.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use RuntimeException;
use function sprintf;
final class AggregateRootIdNotFound extends RuntimeException
{
public function __construct(string $aggregateRootClass)
{
parent::__construct(sprintf('class %s has no... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/AggregateRootNameNotRegistered.php | src/Metadata/AggregateRoot/AggregateRootNameNotRegistered.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class AggregateRootNameNotRegistered extends MetadataException
{
public function __construct(string $name)
{
parent::__const... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/Psr6AggregateRootRegistryFactory.php | src/Metadata/AggregateRoot/Psr6AggregateRootRegistryFactory.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Psr\Cache\CacheItemPoolInterface;
use function assert;
final class Psr6AggregateRootRegistryFactory implements AggregateRootRegistryFactory
{
private const CACHE_KEY = 'aggregate_root_registry';
public function _... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/MissingDataSubjectId.php | src/Metadata/AggregateRoot/MissingDataSubjectId.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class MissingDataSubjectId extends MetadataException
{
/** @param class-string $class */
public function __construct(string $class)
... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/AggregateRootRegistryFactory.php | src/Metadata/AggregateRoot/AggregateRootRegistryFactory.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
interface AggregateRootRegistryFactory
{
/** @param list<string> $paths */
public function create(array $paths): AggregateRootRegistry;
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/AggregateRootAlreadyInRegistry.php | src/Metadata/AggregateRoot/AggregateRootAlreadyInRegistry.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class AggregateRootAlreadyInRegistry extends MetadataException
{
public function __construct(string $aggregateName)
{
parent... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/AttributeAggregateRootRegistryFactory.php | src/Metadata/AggregateRoot/AttributeAggregateRootRegistryFactory.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Aggregate\AggregateRoot;
use Patchlevel\EventSourcing\Attribute\Aggregate;
use Patchlevel\EventSourcing\Metadata\ClassFinder;
use ReflectionClass;
use function array_key_exists;
use function count;... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/ArgumentTypeIsMissing.php | src/Metadata/AggregateRoot/ArgumentTypeIsMissing.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class ArgumentTypeIsMissing extends MetadataException
{
public function __construct(string $methodName)
{
parent::__construc... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/DuplicateApplyMethod.php | src/Metadata/AggregateRoot/DuplicateApplyMethod.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Aggregate\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class DuplicateApplyMethod extends MetadataException
{
/**
* @param class-str... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/Psr6AggregateRootMetadataFactory.php | src/Metadata/AggregateRoot/Psr6AggregateRootMetadataFactory.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Aggregate\AggregateRoot;
use Psr\Cache\CacheItemPoolInterface;
final class Psr6AggregateRootMetadataFactory implements AggregateRootMetadataFactory
{
public function __construct(
privat... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/Psr16AggregateRootRegistryFactory.php | src/Metadata/AggregateRoot/Psr16AggregateRootRegistryFactory.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Psr\SimpleCache\CacheInterface;
final class Psr16AggregateRootRegistryFactory implements AggregateRootRegistryFactory
{
private const CACHE_KEY = 'aggregate_root_registry';
public function __construct(
pri... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/MissingAggregateIdForStreamName.php | src/Metadata/AggregateRoot/MissingAggregateIdForStreamName.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class MissingAggregateIdForStreamName extends MetadataException
{
public function __construct(string $streamName)
{
parent::... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/SubjectIdAndPersonalDataConflict.php | src/Metadata/AggregateRoot/SubjectIdAndPersonalDataConflict.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class SubjectIdAndPersonalDataConflict extends MetadataException
{
/** @param class-string $class */
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/Metadata/AggregateRoot/AggregateWithoutMetadataAware.php | src/Metadata/AggregateRoot/AggregateWithoutMetadataAware.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Metadata\MetadataException;
use function sprintf;
final class AggregateWithoutMetadataAware extends MetadataException
{
/** @param class-string $aggregateRootClass */
public function __con... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/AggregateRootMetadataFactory.php | src/Metadata/AggregateRoot/AggregateRootMetadataFactory.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Aggregate\AggregateRoot;
interface AggregateRootMetadataFactory
{
/**
* @param class-string<T> $aggregate
*
* @return AggregateRootMetadata<T>
*
* @template T of Aggreg... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Metadata/AggregateRoot/Psr16AggregateRootMetadataFactory.php | src/Metadata/AggregateRoot/Psr16AggregateRootMetadataFactory.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Metadata\AggregateRoot;
use Patchlevel\EventSourcing\Aggregate\AggregateRoot;
use Psr\SimpleCache\CacheInterface;
final class Psr16AggregateRootMetadataFactory implements AggregateRootMetadataFactory
{
public function __construct(
private... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Schema/DoctrineSchemaConfigurator.php | src/Schema/DoctrineSchemaConfigurator.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Schema;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Schema\Schema;
interface DoctrineSchemaConfigurator
{
public function configureSchema(Schema $schema, Connection $connection): void;
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Schema/DryRunSchemaDirector.php | src/Schema/DryRunSchemaDirector.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Schema;
interface DryRunSchemaDirector extends SchemaDirector
{
/** @return list<string> */
public function dryRunCreate(): array;
/** @return list<string> */
public function dryRunUpdate(): array;
/** @return list<string> */
... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Schema/DoctrineHelper.php | src/Schema/DoctrineHelper.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Schema;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Exception\TableNotFoundException;
use Throwable;
use function bin2hex;
use function random_bytes;
use function sprintf;
final class DoctrineHelper
{
public static function sameDatabase(Conn... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Schema/SchemaDirector.php | src/Schema/SchemaDirector.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Schema;
interface SchemaDirector
{
public function create(): void;
public function update(): void;
public function drop(): void;
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Schema/ChainDoctrineSchemaConfigurator.php | src/Schema/ChainDoctrineSchemaConfigurator.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Schema;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Schema\Schema;
final class ChainDoctrineSchemaConfigurator implements DoctrineSchemaConfigurator
{
/** @param iterable<DoctrineSchemaConfigurator> $schemaConfigurator */
public function ... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Schema/DoctrineSchemaSubscriber.php | src/Schema/DoctrineSchemaSubscriber.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Schema;
use Doctrine\Common\EventSubscriber;
use Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs;
use Doctrine\ORM\Tools\ToolEvents;
use function class_exists;
/** @deprecated use DoctrineSchemaListener instead */
final class DoctrineSchemaSubscrib... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Schema/DoctrineMigrationSchemaProvider.php | src/Schema/DoctrineMigrationSchemaProvider.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Schema;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\Provider\SchemaProvider;
final class DoctrineMigrationSchemaProvider implements SchemaProvider
{
public function __construct(
private readonly DoctrineSchemaProvider $doctri... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Schema/DoctrineSchemaDirector.php | src/Schema/DoctrineSchemaDirector.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Schema;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Schema\Schema;
use function sprintf;
final class DoctrineSchemaDirector implements DryRunSchemaDirector, DoctrineSchemaProvider
{
public function __construct(
private readonly Conne... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Schema/DoctrineSchemaProvider.php | src/Schema/DoctrineSchemaProvider.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Schema;
use Doctrine\DBAL\Schema\Schema;
interface DoctrineSchemaProvider
{
public function schema(): Schema;
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Schema/DoctrineSchemaListener.php | src/Schema/DoctrineSchemaListener.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Schema;
use Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs;
final class DoctrineSchemaListener
{
public function __construct(
private readonly DoctrineSchemaConfigurator $schemaConfigurator,
) {
}
public function postGenera... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/RunMode.php | src/Subscription/RunMode.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription;
enum RunMode: string
{
case FromBeginning = 'from_beginning';
case FromNow = 'from_now';
case Once = 'once';
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscription.php | src/Subscription/Subscription.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription;
use DateTimeImmutable;
use Throwable;
final class Subscription
{
public const DEFAULT_GROUP = 'default';
public function __construct(
private readonly string $id,
private readonly string $group = self::DEFAULT_G... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/ThrowableToErrorContextTransformer.php | src/Subscription/ThrowableToErrorContextTransformer.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription;
use Throwable;
use function array_key_exists;
use function array_map;
use function array_pop;
use function explode;
use function get_debug_type;
use function get_resource_type;
use function implode;
use function is_array;
use function i... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/SubscriptionError.php | src/Subscription/SubscriptionError.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription;
use Throwable;
/**
* @phpstan-type Trace = array{file?: string, line?: int, function?: string, class?: string, type?: string, args?: array<array-key, mixed>}
* @phpstan-type Context = array{namespace: string, short_name: string, class... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Status.php | src/Subscription/Status.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription;
enum Status: string
{
case New = 'new';
case Booting = 'booting';
case Active = 'active';
case Paused = 'paused';
case Finished = 'finished';
case Detached = 'detached';
case Error = 'error';
case Failed =... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/NoErrorToRetry.php | src/Subscription/NoErrorToRetry.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription;
use RuntimeException;
final class NoErrorToRetry extends RuntimeException
{
public function __construct()
{
parent::__construct('No error to retry.');
}
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/SubscriberUtil.php | src/Subscription/Subscriber/SubscriberUtil.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber;
use Patchlevel\EventSourcing\Metadata\Subscriber\AttributeSubscriberMetadataFactory;
use Patchlevel\EventSourcing\Metadata\Subscriber\SubscriberMetadataFactory;
trait SubscriberUtil
{
private static SubscriberMetadataFact... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/MetadataSubscriberAccessorRepository.php | src/Subscription/Subscriber/MetadataSubscriberAccessorRepository.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber;
use Patchlevel\EventSourcing\Metadata\Subscriber\AttributeSubscriberMetadataFactory;
use Patchlevel\EventSourcing\Metadata\Subscriber\SubscriberMetadataFactory;
use Patchlevel\EventSourcing\Subscription\Subscriber\ArgumentReso... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/SubscriberAccessorRepository.php | src/Subscription/Subscriber/SubscriberAccessorRepository.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber;
interface SubscriberAccessorRepository
{
/** @return iterable<SubscriberAccessor> */
public function all(): iterable;
public function get(string $id): SubscriberAccessor|null;
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/RealSubscriberAccessor.php | src/Subscription/Subscriber/RealSubscriberAccessor.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber;
/** @deprecated will be removed, use MetadataSubscriberAccessor directly */
interface RealSubscriberAccessor
{
public function realSubscriber(): object;
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/MetadataSubscriberAccessor.php | src/Subscription/Subscriber/MetadataSubscriberAccessor.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber;
use Closure;
use Patchlevel\EventSourcing\Attribute\Subscribe;
use Patchlevel\EventSourcing\Message\Message;
use Patchlevel\EventSourcing\Metadata\Subscriber\SubscribeMethodMetadata;
use Patchlevel\EventSourcing\Metadata\Subsc... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/SubscriberAccessor.php | src/Subscription/Subscriber/SubscriberAccessor.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber;
use Closure;
use Patchlevel\EventSourcing\Message\Message;
use Patchlevel\EventSourcing\Subscription\RunMode;
/** @deprecated will be removed, use MetadataSubscriberAccessor directly */
interface SubscriberAccessor
{
publ... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/SubscriberHelper.php | src/Subscription/Subscriber/SubscriberHelper.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber;
use Patchlevel\EventSourcing\Metadata\Subscriber\AttributeSubscriberMetadataFactory;
use Patchlevel\EventSourcing\Metadata\Subscriber\SubscriberMetadata;
use Patchlevel\EventSourcing\Metadata\Subscriber\SubscriberMetadataFacto... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/DuplicateSubscriberId.php | src/Subscription/Subscriber/DuplicateSubscriberId.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber;
use RuntimeException;
use function sprintf;
final class DuplicateSubscriberId extends RuntimeException
{
public function __construct(string $subscriberId)
{
parent::__construct(sprintf('Duplicate subscriber i... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/BatchableSubscriber.php | src/Subscription/Subscriber/BatchableSubscriber.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber;
interface BatchableSubscriber
{
public function beginBatch(): void;
public function commitBatch(): void;
public function rollbackBatch(): void;
public function forceCommit(): bool;
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/NoSuitableResolver.php | src/Subscription/Subscriber/NoSuitableResolver.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber;
use RuntimeException;
use function sprintf;
final class NoSuitableResolver extends RuntimeException
{
public function __construct(string $class, string $methodName, string $argumentName)
{
parent::__construct... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/ArgumentResolver/ArgumentResolver.php | src/Subscription/Subscriber/ArgumentResolver/ArgumentResolver.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber\ArgumentResolver;
use Patchlevel\EventSourcing\Message\Message;
use Patchlevel\EventSourcing\Metadata\Subscriber\ArgumentMetadata;
interface ArgumentResolver
{
public function resolve(ArgumentMetadata $argument, Message $m... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/ArgumentResolver/EventArgumentResolver.php | src/Subscription/Subscriber/ArgumentResolver/EventArgumentResolver.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber\ArgumentResolver;
use Patchlevel\EventSourcing\Message\Message;
use Patchlevel\EventSourcing\Metadata\Subscriber\ArgumentMetadata;
use function class_exists;
use function is_a;
final class EventArgumentResolver implements Arg... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/ArgumentResolver/RecordedOnArgumentResolver.php | src/Subscription/Subscriber/ArgumentResolver/RecordedOnArgumentResolver.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber\ArgumentResolver;
use DateTimeImmutable;
use Patchlevel\EventSourcing\Aggregate\AggregateHeader;
use Patchlevel\EventSourcing\Message\Message;
use Patchlevel\EventSourcing\Metadata\Subscriber\ArgumentMetadata;
use Patchlevel\Ev... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/ArgumentResolver/LookupResolver.php | src/Subscription/Subscriber/ArgumentResolver/LookupResolver.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber\ArgumentResolver;
use Patchlevel\EventSourcing\Message\Message;
use Patchlevel\EventSourcing\Metadata\Event\EventRegistry;
use Patchlevel\EventSourcing\Metadata\Subscriber\ArgumentMetadata;
use Patchlevel\EventSourcing\Store\St... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/ArgumentResolver/MessageArgumentResolver.php | src/Subscription/Subscriber/ArgumentResolver/MessageArgumentResolver.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber\ArgumentResolver;
use Patchlevel\EventSourcing\Message\Message;
use Patchlevel\EventSourcing\Metadata\Subscriber\ArgumentMetadata;
final class MessageArgumentResolver implements ArgumentResolver
{
public function resolve(A... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Subscriber/ArgumentResolver/AggregateIdArgumentResolver.php | src/Subscription/Subscriber/ArgumentResolver/AggregateIdArgumentResolver.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Subscriber\ArgumentResolver;
use Patchlevel\EventSourcing\Aggregate\AggregateHeader;
use Patchlevel\EventSourcing\Aggregate\AggregateRootId;
use Patchlevel\EventSourcing\Message\Message;
use Patchlevel\EventSourcing\Metadata\Subscriber\Ar... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/RetryStrategy/RetryStrategy.php | src/Subscription/RetryStrategy/RetryStrategy.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\RetryStrategy;
use Patchlevel\EventSourcing\Subscription\Subscription;
interface RetryStrategy
{
public function shouldRetry(Subscription $subscription): bool;
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/RetryStrategy/ClockBasedRetryStrategy.php | src/Subscription/RetryStrategy/ClockBasedRetryStrategy.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\RetryStrategy;
use DateTimeImmutable;
use Patchlevel\EventSourcing\Clock\SystemClock;
use Patchlevel\EventSourcing\Subscription\Subscription;
use Psr\Clock\ClockInterface;
use function round;
use function sprintf;
final class ClockBased... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/RetryStrategy/ConditionalRetryStrategy.php | src/Subscription/RetryStrategy/ConditionalRetryStrategy.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\RetryStrategy;
use Patchlevel\EventSourcing\Subscription\Subscription;
interface ConditionalRetryStrategy extends RetryStrategy
{
public function canRetry(Subscription $subscription): bool;
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/RetryStrategy/NoRetryStrategy.php | src/Subscription/RetryStrategy/NoRetryStrategy.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\RetryStrategy;
use Patchlevel\EventSourcing\Subscription\Subscription;
final class NoRetryStrategy implements ConditionalRetryStrategy
{
public function shouldRetry(Subscription $subscription): bool
{
return false;
}
... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/RetryStrategy/RetryStrategyNotFound.php | src/Subscription/RetryStrategy/RetryStrategyNotFound.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\RetryStrategy;
use RuntimeException;
use function sprintf;
final class RetryStrategyNotFound extends RuntimeException
{
public function __construct(string $name)
{
parent::__construct(sprintf('Retry strategy with name "%... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/RetryStrategy/UnexpectedError.php | src/Subscription/RetryStrategy/UnexpectedError.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\RetryStrategy;
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/RetryStrategy/RetryStrategyRepository.php | src/Subscription/RetryStrategy/RetryStrategyRepository.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\RetryStrategy;
final class RetryStrategyRepository
{
public const DEFAULT_STRATEGY_NAME = 'default';
/** @param array<string, RetryStrategy> $strategies */
public function __construct(
private readonly array $strategi... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Lookup/Lookup.php | src/Subscription/Lookup/Lookup.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Lookup;
use Patchlevel\EventSourcing\Aggregate\AggregateHeader;
use Patchlevel\EventSourcing\Message\Message;
use Patchlevel\EventSourcing\Metadata\Event\EventRegistry;
use Patchlevel\EventSourcing\Store\Criteria\AggregateIdCriterion;
use... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Lookup/MessageNotFound.php | src/Subscription/Lookup/MessageNotFound.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Lookup;
use RuntimeException;
final class MessageNotFound extends RuntimeException
{
public function __construct()
{
parent::__construct('Message not found');
}
}
| php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Store/SubscriptionNotFound.php | src/Subscription/Store/SubscriptionNotFound.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Store;
use RuntimeException;
use function sprintf;
final class SubscriptionNotFound extends RuntimeException
{
public function __construct(string $subscriptionId)
{
parent::__construct(sprintf('Subscription with the id "... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Store/InMemorySubscriptionStore.php | src/Subscription/Store/InMemorySubscriptionStore.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Store;
use Patchlevel\EventSourcing\Clock\SystemClock;
use Patchlevel\EventSourcing\Subscription\Subscription;
use Psr\Clock\ClockInterface;
use function array_filter;
use function array_key_exists;
use function array_values;
use functio... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Store/LockableSubscriptionStore.php | src/Subscription/Store/LockableSubscriptionStore.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Store;
use Closure;
interface LockableSubscriptionStore extends SubscriptionStore
{
/**
* @param Closure():T $closure
*
* @return T
*
* @throws TransactionCommitNotPossible
*
* @template T
*/
... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Store/SubscriptionCriteria.php | src/Subscription/Store/SubscriptionCriteria.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Store;
use Patchlevel\EventSourcing\Subscription\Status;
/** @immutable */
final class SubscriptionCriteria
{
/**
* @param list<string>|null $ids
* @param list<string>|null $groups
* @param list<Status>|null $status
... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Store/TransactionCommitNotPossible.php | src/Subscription/Store/TransactionCommitNotPossible.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Store;
use RuntimeException;
use Throwable;
final class TransactionCommitNotPossible extends RuntimeException
{
public function __construct(Throwable $previous)
{
parent::__construct(
'Committing a transaction... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Store/SubscriptionStore.php | src/Subscription/Store/SubscriptionStore.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Store;
use Patchlevel\EventSourcing\Subscription\Subscription;
interface SubscriptionStore
{
/** @throws SubscriptionNotFound */
public function get(string $subscriptionId): Subscription;
/** @return list<Subscription> */
... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Store/SubscriptionAlreadyExists.php | src/Subscription/Store/SubscriptionAlreadyExists.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Store;
use RuntimeException;
use function sprintf;
final class SubscriptionAlreadyExists extends RuntimeException
{
public function __construct(string $id)
{
parent::__construct(sprintf('Subscription "%s" already exists.... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Store/DoctrineSubscriptionStore.php | src/Subscription/Store/DoctrineSubscriptionStore.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Store;
use Closure;
use DateTimeImmutable;
use Doctrine\DBAL\ArrayParameterType;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Exception\DriverException;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Platforms\SQLitePl... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/ProcessedResult.php | src/Subscription/Engine/ProcessedResult.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Engine;
final class ProcessedResult
{
/** @param list<Error> $errors */
public function __construct(
public readonly int $processedMessages,
public readonly bool $finished = false,
public readonly array $er... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/Result.php | src/Subscription/Engine/Result.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Engine;
final class Result
{
/** @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/GapResolverStoreMessageLoader.php | src/Subscription/Engine/GapResolverStoreMessageLoader.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Engine;
use DateInterval;
use Generator;
use Patchlevel\EventSourcing\Aggregate\AggregateHeader;
use Patchlevel\EventSourcing\Clock\SystemClock;
use Patchlevel\EventSourcing\Message\Message;
use Patchlevel\EventSourcing\Store\Criteria\Cri... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/MessageLoader.php | src/Subscription/Engine/MessageLoader.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Engine;
use Patchlevel\EventSourcing\Store\Stream;
use Patchlevel\EventSourcing\Subscription\Subscription;
interface MessageLoader
{
/** @param list<Subscription> $subscriptions */
public function load(int $startIndex, array $sub... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/SubscriptionManager.php | src/Subscription/Engine/SubscriptionManager.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Engine;
use Closure;
use Patchlevel\EventSourcing\Subscription\Store\LockableSubscriptionStore;
use Patchlevel\EventSourcing\Subscription\Store\SubscriptionCriteria;
use Patchlevel\EventSourcing\Subscription\Store\SubscriptionStore;
use P... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/StoreMessageLoader.php | src/Subscription/Engine/StoreMessageLoader.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Engine;
use Patchlevel\EventSourcing\Store\Criteria\Criteria;
use Patchlevel\EventSourcing\Store\Criteria\FromIndexCriterion;
use Patchlevel\EventSourcing\Store\Store;
use Patchlevel\EventSourcing\Store\Stream;
use Patchlevel\EventSourcin... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
patchlevel/event-sourcing | https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/src/Subscription/Engine/SubscriberNotFound.php | src/Subscription/Engine/SubscriberNotFound.php | <?php
declare(strict_types=1);
namespace Patchlevel\EventSourcing\Subscription\Engine;
use RuntimeException;
use function sprintf;
final class SubscriberNotFound extends RuntimeException
{
public static function forSubscriptionId(string $subscriptionId): self
{
return new self(
sprintf(... | php | MIT | 183a44ce065b249fae92725ba5af56f01335ac88 | 2026-01-05T02:54:16.927404Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.