for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace EventSauce\EventSourcing\Snapshotting\Tests;
use EventSauce\EventSourcing\AggregateRootId;
final class LightSwitchId implements AggregateRootId
{
public function __construct(private string $id)
}
public function toString(): string
return $this->id;
public static function fromString(string $aggregateRootId): AggregateRootId
return new static($aggregateRootId);