| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class EventStager |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var AggregateRootId |
||
| 15 | */ |
||
| 16 | private $id; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var AggregateRootRepository |
||
| 20 | */ |
||
| 21 | private $repository; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var AggregateRootTestCase |
||
| 25 | */ |
||
| 26 | private $testCase; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var InMemoryMessageRepository |
||
| 30 | */ |
||
| 31 | private $messageRepository; |
||
| 32 | |||
| 33 | public function __construct(AggregateRootId $id, InMemoryMessageRepository $messageRepository, AggregateRootRepository $repository, AggregateRootTestCase $testCase) |
||
| 39 | } |
||
| 40 | |||
| 41 | public function stage(object ...$events): AggregateRootTestCase |
||
| 49 |