public function orderId() : string { return $this->orderId; }
/** * @param SendOrder $command * @throws InvalidTransitionException */ public function handle(SendOrder $command) { $order = $this->orders->getById(new OrderId($command->orderId())); $order->send(); }