/** * 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); }
/** * 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(); }