| Total Complexity | 1 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | final class AggregateClosed |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Aggregate identifier. |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | public $id; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Aggregate identifier class. |
||
| 33 | * |
||
| 34 | * @psalm-var class-string<\ServiceBus\EventSourcing\AggregateId> |
||
| 35 | * |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | public $idClass; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Aggregate class. |
||
| 42 | * |
||
| 43 | * @psalm-var class-string<\ServiceBus\EventSourcing\Aggregate> |
||
| 44 | * |
||
| 45 | * @var string |
||
| 46 | */ |
||
| 47 | public $aggregateClass; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Operation datetime. |
||
| 51 | * |
||
| 52 | * @var \DateTimeImmutable |
||
| 53 | */ |
||
| 54 | public $datetime; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @psalm-param class-string<\ServiceBus\EventSourcing\Aggregate> $aggregateClass |
||
| 58 | */ |
||
| 59 | 1 | public function __construct(AggregateId $id, string $aggregateClass, \DateTimeImmutable $datetime) |
|
| 70 |