Slide 22
Slide 22 text
USING IT
$repository = new SubscriptionPlanInMemoryRepository();
$handler = new CreateSubscriptionPlanCommandHandler($repository);
$response = $handler->handle(
new CreateSubscriptionPlanCommand(
'label', 12, 20, '2018-10-02', ['gym', ‘tennis’]
));
//we get the created subscription plan Uuid
$response->value();