Get a resource to help during testing.

@param $key

@return mixed
174267
protected function getHelpResource($key)
    {
        if (!isset($this->helpResources[$key])) {
            throw new \InvalidArgumentException(sprintf("The resource \"%s\" you are asking for doesn't exist.", $key));
        }

        return $this->helpResources[$key];
    }
1026498
public function get( $key )
	{
		$uri		= $this->getUriForKey( $key );
		if( !$this->isValidFile( $uri ) )
			return NULL;
		if( isset( $this->data[$key] ) )
			return $this->data[$key];
		$content	= FS_File_Editor::load( $uri );
		$value		= unserialize( $content );
		$this->data[$key]	= $value;
		return $value;
	}
1068964
public function get($key)
    {
        if (array_key_exists($key, $this->settings)) {
            return $this->settings[$key];
        }

        return false;
    }
1205783
public static function get($key)
    {
        $item = self::getCacheService()->user()->getItem(self::key($key));
        if ($item->isHit()) {
            return $item->get();
        }
        return null;
    }
477793
public static function get($key)
    {
        empty(self::$prefix) && self::$prefix = Config::get('session_prefix');
        return (isset($_SESSION[self::$prefix . $key])) ? $_SESSION[self::$prefix . $key] : null;
    }
1367497
protected function getByKey($key)
    {
        return $this->propertyBag()
            ->where('resource_id', $this->resource->getKey())
            ->where('key', $key)
            ->first();
    }
377157
public function get($key)
    {
        //        return $this->claims['data'][$key] ?? null;

        if (isset($this->claims['data'][$key])) {
            return $this->claims['data'][$key];
        } else {
            return null;
        }
    }
576336
public function get($key)
	{
		$value = xcache_get($this->id($key));

		if (isset($value))
		{
			return $value;
		}
	}
346224
public function get($key) {
        $key = $this->prepare_key($key);
        $success = false;
        $outcome = apcu_fetch($key, $success);
        if ($success) {
            return $outcome;
        }
        return $success;
    }
1094684
public static function get($key)
    {
        return isset(self::$config[$key]) ? self::$config[$key] : null;
    }
316078
public function get($key) {
		
		if (isset($this->_data[$key])) {
			return $this->_data[$key];
		}
		
		if (isset($this->registered[$key])) {
			return $this->_data[$key] = call_user_func($this->registered[$key], $this);
		}
		
		return null;	
	}
1041258
public function get_data($key) {
        if (isset($this->data->$key)) {
            return $this->data->$key;
        }
        return null;
    }
889070
public function get($key)
	{
		$value = xcache_get($this->prefix.$key);

		if (isset($value))
		{
			return $value;
		}
	}
971575
public function get($key)
  {
    return isset($this->attr[$key]) ? $this->attr[$key] : false;
  }
786575
public function get($key)
    {
        $context = $this->_context;

        if ($context->cache !== null && array_key_exists($key, $context->cache)) {
            return $context->cache[$key];
        } elseif ($this->_enabled) {
            if ($this->_is_cli) {
                if (($r = apcu_fetch($this->_prefix ? ($this->_prefix . $key) : $key)) === false) {
                    return false;
                }
                return time() <= $r[0] ? $r[1] : false;
            } else {
                return apcu_fetch($this->_prefix ? ($this->_prefix . $key) : $key);
            }
        } else {
            return false;
        }
    }
1011277
public function get($key)
    {
        $value = $this->redis->hMGet($key, ['type', 'value']);

        if (!isset($value['type'], $value['value']) || $value['value'] === false) {
            return false;
        }

        switch ($value['type']) {
            case 'array':
            case 'object':
                return unserialize($value['value']);
            case 'boolean':
            case 'integer':
            case 'double': // Yes, 'double' is returned and NOT 'float'
            case 'string':
            case 'NULL':
                return settype($value['value'], $value['type'])
                ? $value['value']
                : false;
            case 'resource':
            default:
                return false;
        }
    }
525074
public function get($key)
    {
        $result = $this->client->get($key);

        return $result !== false ? $result : null;
    }