/** * @param PrepareOrder $command * @throws InvalidTransitionException */ public function handle(PrepareOrder $command) { $order = $this->orders->getById(new OrderId($command->orderId())); $order->prepare(); }