Example #1
0
 /**
  * Get loaded object. If object is not loaded yet, then load it and save it
  * locally. Otherwise, just return the pre-loaded object.
  *
  * @param CartInterface $cart Cart
  *
  * @return mixed Loaded object
  */
 public function get(CartInterface $cart = null)
 {
     return $this->paymentEventDispatcher->dispatchPaymentCollectionEvent($cart);
 }
Example #2
0
 /**
  * Get loaded object. If object is not loaded yet, then load it and save it
  * locally. Otherwise, just return the pre-loaded object
  *
  * @return mixed Loaded object
  */
 public function get()
 {
     return $this->paymentEventDispatcher->dispatchPaymentCollectionEvent();
 }