public function call($name, $arguments)
    {
        if ($value = $this->cache->get($cacheKey = $this->cache->makeKey([$name, $arguments]))) {
            return $value;
        }

        $result = call_user_func_array([$this, $name], $arguments);

        if ($this->config->get('hydrate.before')) {
            $result = $this->hydrator->hydrate($result);
        }

        return $this->cache->set($cacheKey, $result, $this->config->get('cache.duration'));
    }
public function call($name, $arguments)
    {
        if ($value = $this->cache->get($cacheKey = $this->cache->makeKey([$name, $arguments]))) {
            return $value;
        }

        $result = call_user_func_array([$this, $name], $arguments);

        if ($this->config->get('hydrate.before')) {
            $result = $this->hydrator->hydrate($result);
        }

        return $this->cache->set($cacheKey, $result, $this->config->get('cache.duration'));
    }
public function call ( $ name , $ arguments ) { if ( $ value = $ this -> cache -> get ( $ cacheKey = $ this -> cache -> makeKey ( [ $ name , $ arguments ] ) ) ) { return $ value ; } $ result = call_user_func_array ( [ $ this , $ name ] , $ arguments ) ; if ( $ this -> config -> get ( 'hydrate.before' ) ) { $ result = $ this -> hydrator -> hydrate ( $ result ) ; } return $ this -> cache -> set ( $ cacheKey , $ result , $ this -> config -> get ( 'cache.duration' ) ) ; }
Call a method currencies collection.

@param $name
@param $arguments
@return bool|mixed
Call a method currencies collection .