Returns the specified query string argument.

@param  string $name
@return array
765055
public function query($name)
    {
        $exists = isset($this->queries[$name]);

        return $exists ? $this->queries[$name] : null;
    }
1080357
public function findArgument($name) {
        foreach ($this->getArguments() as $argument) {
            if ($argument->getName() === $name) {
                return $argument;
            }
        }

        throw new ArgumentNotFoundException(s(
            'Argument "%s" does not exist.',
            $name
        ));
    }
839841
protected function getQueryParam($name, $default = null)
    {
        return isset($this->request->getQueryParams()[$name]) ? $this->request->getQueryParams()[$name] : $default;
    }
1330652
public function getQuery(string $name)
    {
        if (isset($this->uri['query'][$name])) {
            return $this->uri['query'][$name];
        }

        return null;
    }
17140
public function getQueryParam($name, $default = null)
    {
        if (isset($this->queryParams[$name])) {
            return $this->queryParams[$name];
        }

        return $default;
    }
1332218
protected function getParamFromRequest($name)
    {
        if (null !== $value = $this->requestStack->getCurrentRequest()->get($name)) {
            return $value;
        }

        if ((null !== $request = $this->requestStack->getParentRequest()) && null !== $value = $request->get($name)) {
            return $value;
        }

        if ((null !== $request = $this->requestStack->getMasterRequest()) && null !== $value = $request->get($name)) {
            return $value;
        }

        return null;
    }
279109
public function getParameter($name)
    {
        if (isset($this->_parameters[$name])) {
            return $this->_parameters[$name];
        }
        return null;
    }
439324
public function getArgument($name) {
        if (!$this->docoptResult)
            return null;

        if ($this->isArgument($name)) {
            $value = $this->docoptResult[$name];
            if (is_array($value))
                return $value ? $value[0] : null;
            return $value;
        }
        return null;
    }
817098
public function searchByName($name) {
		return $this->parameters->search($name, function (Parameter $param, $name) {
			return $param->getName() == $name;
		});
	}
667114
protected function getArguments(array $matches, $name)
	{
		$args = [];
		$i    = 0;
		while (isset($matches[$name . $i]))
		{
			$args[] = $matches[$name . $i];
			++$i;
		}

		return $args;
	}
240572
protected function getPostArg ($name)
	{
		return isset ($this->request['post'][$name])? $this->request['post'][$name] : FALSE;
	}
831543
public function getParametersWithKey($name)
    {
        $parameters = array();

        /** @var Parameter $parameter */
        foreach ($this->parameters as $parameter) {
            if ($parameter->getKey() == $name) {
                $parameters[] = $parameter;
            }
        }

        return $parameters;
    }
552058
protected function getParams($name = null)
    {
        $queues = !is_null($name) ? [$name] : $this->getQueues();
        $params = [
            config('queue.default'),
        ];
        if (empty($queues)) {
            return $params;
        }
        $queue = implode(',', $queues);
        if ($this->isCli()) {
            array_push($params, '--queue ' . $queue);
        } else {
            $params['--queue'] = $queue;
        }

        unset($queues);


        return $params;
    }
570182
public function getArgument($name)
    {
        if (!$this->hasArgument($name)) {
            throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
        }

        $arguments = \is_int($name) ? array_values($this->arguments) : $this->arguments;

        return $arguments[$name];
    }
793729
public function getArgumentByName(string $name)
    {
        $param = self::$params[$this->className][$this->method];

        if (!isset($param[$name])) {
            return null;
        }

        return $this->arguments[$param[$name]['index']];
    }
556050
public function getArgument($name)
    {
        if (isset($this->arguments[$name])) {
            return $this->arguments[$name];
        }
        return null;
    }
958939
public function findByName($name) {
		foreach ($this->parameters as $param) {
			if ($param->getName() == $name) {
				return $param;
			}
		}
	}