/** * @return RateCollection */ private function retrieveResult() { if (empty($this->currencies)) { return new RateCollection(); } $result = $this->provider->convertMany($this->currencies); return $this->result->addMany($result); }
private function addManyRates() { $this->rates->addMany(['USD' => ['EUR' => 0.8014, 'CAD' => 1.1253], 'EUR' => ['USD' => 1.2478, 'CAD' => 1.4045]]); }