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