/** * @param TransferFundsResponse $response */ public function transferCompleted(TransferFundsResponse $response) { $this->output->writeln('<info>Transfer completed successfully!</info>'); $this->printStatement($response->fromMember()); $this->printStatement($response->toMember()); }
/** * @param TransferFundsResponse $result * @return \Psr\Http\Message\ResponseInterface */ public function respondTransferCompleted(TransferFundsResponse $result) { $this->form->configure($this->configuration, $result->fromMember()->id()); $html = $this->template->render('member/transfer-funds.html', ['form' => $this->form->buildView(), 'fromMember' => $result->fromMember(), 'toMember' => $result->toMember()]); $this->response = $this->factory->buildResponse($html); }