public function handle(PayPayment $command) { $payment = $this->payments->getById(new PaymentId($command->paymentId())); $payment->pay(); }