Returns a parameter of given index position.

@param mixed $index

@throws \InvalidArgumentException

@return mixed
434616
public function getParameter($index)
    {
        if (!$this->hasParameter($index)) {
            throw new \InvalidArgumentException(sprintf('Cannot retrieve parameter "%s"', $index));
        }

        return $this->parameters[$index];
    }
281471
public function getArgument($index)
    {
        if (!is_int($index)) {
            throw new InvalidArgumentException('integer', 0);
        }

        if (!isset($this->arguments[$index])) {
            return null;
        }

        return $this->arguments[$index];
    }
239897
public function get($index)
    {
        $result = \array_slice($this->nodes, $index, 1); // note: index can be negative
        if (\count($result) > 0) {
            return $result[0];
        }

        return null; // return null if no result for key
    }
464530
protected function getMethodParam($index)
    {
        if (isset($this->methodParams[$index]) && ($value = intval($this->methodParams[$index])) > 0) {
            return $value;
        }

        return null;
    }
470493
public function offsetGet($index) {
		if( $this->results === null ){
			$this->results = ($this->query)();
		}
		if( isset($this->results[$index]) ){
			return $this->results[$index];
		}
		return null;
	}
988176
protected function map($index) // -> int
	{
		$r = $index;
		
		if( (null !== $index) && is_integer($index))
		{
			$r    = $index + $this->start;
			$size = $this->data->getSize();
			
			if($r >= $size)
			{
				$r -= $size;
			}
		}
		
		return $r;
	}
1197051
public function getParamAll($index){
        if(isset($this->allParams[$index])){            
            return Security::clean_vars($this->allParams[$index]);
        }
        else{
            return NULL;
        }
    }
188864
public function get($index)
    {
        if (isset($this->callables[$index])) {
            return $this->callables[$index];
        }

        return $this->resolve($index);
    }
810250
public function getValue($index = 0)
    {
        if ($index === 0 && $this->value === null) {
            return $this->defaultValue;
        }

        return (is_array($this->value) && array_key_exists($index, $this->value))
            ? $this->value[$index]
            : null;
    }
919849
protected function getSortingPart($index)
    {
        $sorting = $this->getSorting();
        if ($sorting === '') {
            return null;
        }

        $parts = explode(' ', $sorting);
        return isset($parts[$index]) ? $parts[$index] : null;
    }
147892
public function offsetGet($index)
    {
        if (!$this->offsetExists($index)) {
            throw new Exception\FormatNotFoundException('Format ' . $index . ' is not known');
        }

        return parent::offsetGet($index);
    }
1140649
public function addIndex($index)
    {
        if ($index instanceof Index) {
            if ($this->hasIndex($index->getName())) {
                throw new InvalidArgumentException(sprintf('Index "%s" already exist.', $index->getName()));
            }
            if (!$index->getColumns()) {
                throw new InvalidArgumentException(sprintf('Index "%s" has no columns.', $index->getName()));
            }
            $index->setTable($this);
            // force the name to be created if empty.
            $this->indices[] = $index;

            return $index;
        }

        $idx = new Index();
        $idx->loadMapping($index);
        foreach((array)@$index['columns'] as $column) {
            $idx->addColumn($column);
        }

        return $this->addIndex($idx);
    }
90838
public function getByIndex(int $index) : string
        {
                $value = $this->_redis->lindex($this->_key, $index);
                return !empty($value)?$value:'';
        }
651887
public function getDropIndexSQL($index, $table = null)
    {
        if ($index instanceof Index) {
            $index = $index->getQuotedName($this);
        } elseif (! is_string($index)) {
            throw new InvalidArgumentException('AbstractPlatform::getDropIndexSQL() expects $index parameter to be string or \Doctrine\DBAL\Schema\Index.');
        }

        return 'DROP INDEX ' . $index;
    }
441968
public function getOperand($index)
    {
        if (is_string($index)) {
            $name = $index;
            foreach ($this->operands as $operand) {
                if ($operand->getName() === $name) {
                    return $operand;
                }
            }
            return null;
        }

        return isset($this->operands[$index]) ? $this->operands[$index] : null;
    }
620469
public function getParameter($index)
    {
        if (!is_string($index) && !is_numeric($index)) {
            return null;
        }
        if (array_key_exists($index, $this->_parameterNameMap)) {
            $index = $this->_parameterNameMap[$index];
        }
        if (array_key_exists($index, $this->_parameters)) {
            return $this->_parameters[$index];
        }
        return null;
    }
1082086
public function getKey($index)
    {
        Assertion::integer($index, 'The index must be a positive integer.');
        Assertion::greaterOrEqualThan($index, 0, 'The index must be a positive integer.');
        Assertion::true($this->hasKey($index), 'Undefined index.');

        return $this->getKeys()[$index];
    }