/** * @param string $paymentMethod * * @return array */ public function get($paymentMethod) { if (!isset($this->settings[$paymentMethod])) { $this->settings[$paymentMethod] = $this->repository->getSettingsForMethodArray($paymentMethod); } return $this->settings[$paymentMethod]; }