Get/Set variable from Get Method

@param string $name
@param string $value

@return mixed|null
355307
public static function get( $name = '', $value = '' ) {

		if ( ! empty( $value ) ) {
			$_GET[ $name ] = $value;
		}

		if ( empty( $name ) ) {
			return $_GET;
		} else {
			return ( isset( $_GET[ $name ] ) ) ? $_GET[ $name ] : NULL;
		}

	}
1307945
public function setQuery($name, $value = null)
    {
        if (!is_array($name)) {
            $this->gets[$name] = $value;
        } else {
            $this->gets = $name + $this->gets;
        }
        return $this;
    }
209160
public function withVar(string $name, $value): self
    {
        $new = clone $this;

        $query = $new->vars;
        $query[$name] = $value;

        $query = UriHelper::filterQuery(UriHelper::buildQuery($query));

        $new->vars = UriHelper::parseQuery($query);
        $new->query = $query;

        return $new;
    }
767180
public function value( $name, $value = null )
    {
        if ( is_array( $name ) ) {
            $this->values += $name;
        } elseif ( func_num_args() > 1 ) {
            $this->values[ $name ] = $value;
        }
        return $this;
    }
885245
public function get_var($name)
    {
        // Check if variable exists
        for ($i=0, $len=count($this->vars); $i<$len; $i++) {
            if ($this->vars[$i]['name'] == $name) {
                return $this->vars[$i]['name'];
            }
        }
    }
108256
public function get($name)
    {
        $value = $this->cache->get($name);

        return is_array($value)
            ? new Location($value)
            : null;
    }
1141895
public function getVariable($name) {
		if (isset($this->variables[$name])) {
			return $this->variables[$name];
		} else {
			return null;
		}
	}
1113892
public function setVariable(string $name, $value = null): self
    {
        $this->variables[$name] = $value;

        return $this;
    }
100774
public function setParam($name, $value)
	{
		if (null === $this->params)
		{
			$this->params = $this->loadParams();
		}

		$this->params->set($name, $value);

		return $this;
	}
1168511
public function offsetGet( $name ) {
		if ( ! array_key_exists( $name, $this->variables ) ) {
			$this->variables[ $name ] = new Variable( $name );
		}

		return $this->variables[ $name ];
	}
517435
public function set($name, $value = null)
	{
		is_null($name) or \Arr::set($this->data, $name, $value);

		return $this;
	}
52768
public function getVariable($name)
    {
        $result = null;
        $this->addHeader();
        try {
            $result = $this->getSoap()->GetVariable([
                'name' => $name
            ]);
        } catch (\SoapFault $ex) {
            $this->logError();
        }
        return $result;
    }
566365
public function setParam($name, $value=null) {
		if(is_array($name)) {
			foreach($name as $k=>$v)
				$this->setParam($k, $v);
			return $this;
		}
		$this->params[$name] = $value;
		return $this;
	}
1169471
public function addGet($name, $value = null)
    {
        if (is_array($name) && $value === null) {
            $this->getParams = array_merge($this->getParams, $name);
        } else {
            $this->getParams[$name] = $value;
        }

        return $this;
    }
893771
public function set(string $name, $value) : Recipe
    {
        $this->variables->$name = $value;
        return $this;
    }
1007949
public function set($name, $value)
    {
        if (property_exists($this, $name)) {
            $this->$name = $value;

            return true;
        }

        return null;
    }
744868
public function input(string $name, $value = null)
    {
        if ($value !== null) {
            !$this->all && $this->inputs();

            Arrays::set($this->input, $name, $value);
            $this->cache = [];

            return $value;
        }

        if (isset($this->input[$name])) {
            return $this->input[$name];
        }

        if (\array_key_exists($name, $this->cache)) {
            return $this->cache[$name];
        }

        if ($this->all) {
            $found = Arrays::get($this->input, $name);
        } else {
            if ($this->serverRequest->getMethod() !== 'GET') {
                $found = $this->request($name);
            }

            $found = $found ?? $this->query($name);
        }

        return $this->cache[$name] = $found;
    }