30 private $paymentDataObjectFactory;
41 $this->commandPool = $commandPool;
42 $this->paymentDataObjectFactory = $paymentDataObjectFactory;
60 $commandSubject[
'payment'] = $this->paymentDataObjectFactory->create(
$payment);
63 return $this->commandPool
65 ->execute($commandSubject);
82 $commandSubject[
'payment'] = $this->paymentDataObjectFactory->create(
$payment);
85 return $command->
execute($commandSubject);
96 public function get($commandCode)
98 return $this->commandPool->get($commandCode);
executeByCode($commandCode, InfoInterface $payment=null, array $arguments=[])
execute(CommandInterface $command, InfoInterface $payment=null, array $arguments=[])
execute(array $commandSubject)
__construct(CommandPoolInterface $commandPool, PaymentDataObjectFactoryInterface $paymentDataObjectFactory)