/**
  * @since 1.9
  *
  * @param $config
  */
 protected function setupConfiguration($config)
 {
     $configuration = new SimpleDictionary($config);
     if ($this->configuration instanceof SimpleDictionary) {
         return $this->configuration->merge($configuration->toArray());
     }
     $this->configuration = $configuration;
 }
 /**
  * @since 1.9
  *
  * @param $config
  */
 protected function setupConfiguration($config)
 {
     $configuration = new Options($config);
     if ($this->configuration instanceof Options) {
         return $this->configuration = new Options(array_merge($this->configuration->getOptions(), $configuration->getOptions()));
     }
     $this->configuration = $configuration;
 }
 /**
  * Mapping of cached content
  *
  * Returns unserialized objects and the timestamp of the cached content
  *
  * @since 1.9
  *
  * @param array $resultCache
  *
  * @return array
  */
 protected function mapping(array $resultCache)
 {
     $this->cacheSetup->set('cacheDate', isset($resultCache['time']) ? $resultCache['time'] : null);
     return isset($resultCache['result']) ? unserialize($resultCache['result']) : array();
 }