Get the middleware at the provided index.

@param int $index The index to fetch.
@return callable|null Either the callable middleware or null
if the index is undefined.
188864
public function get($index)
    {
        if (isset($this->callables[$index])) {
            return $this->callables[$index];
        }

        return $this->resolve($index);
    }
1149403
public function offsetGet( $index )
    {
        if( !isset( $this->collection[$index] ) ){
            return null;
        }
        return $this->collection[$index];
    }
180538
public function get(int $index): string
    {
        return $this->handle->lIndex($this->name, $index);
    }
549396
public function offsetGet( $index )
    {
        return call_user_func(
            $this->fetchCallback,
            pg_fetch_array( $this->resource, $index, $this->fetchType )
        );
    }
1005418
public function getByIndex($index)
    {
        if ($index === 0) return $this->darkGray;
        if ($index === 1) return $this->midColor;
        if ($index === 2) return $this->lightGray;
        if ($index === 3) return $this->lightColor;
        if ($index === 4) return $this->darkColor;
        return null;
    }
537976
public function getLog($index = null)
    {
        if (is_null($index)) {
            return $this->log;
        }

        return $this->log[$index];
    }
25895
public function indexer($index = null)
    {
        if (empty($this->nodeIndexerChain)) {
            $list = [];
            foreach ($this->keys() as $existing) {
                $list[$existing] = new NodeIndexer(
                    $existing,
                    $this->client,
                    $this->db,
                    $this->entityManager,
                    $this->moduleHandler,
                    $this->eventDispatcher,
                    $this->getIndexRealname($existing),
                    $this->preventBulkUsage
                );
            }
            $this->nodeIndexerChain = new NodeIndexerChain($list);
        }

        if ($index) {
            return $this->nodeIndexerChain->getIndexer($index);
        }

        return $this->nodeIndexerChain;
    }
687040
public function loadResult($index = 0)
    {
        if ($this->stmt === null) {
            return null;
        }

        $singleResult = $this->stmt->fetch(\PDO::FETCH_NUM);
        return $singleResult[$index];
    }
1059038
public function delete($index)
    {
        $request = $this->createRequestInstance(self::INDEX_DELETE, $index, null);

        return $this->client->send($request);
    }
227825
public function getChildByIndex($index)
    {
        return isset($this->children[$index]) ? $this->children[$index] : null;
    }
149175
public function getPartByIndex($index)
    {
        if (!isset($this->_parts[$index])) {
            return null;
        }

        $part = $this->_parts[$index];
        $part->parent = $this;

        return $part;
    }
1008047
public function getByIndex($index)
    {
        if (isset($this->elements[$index])) {
            return $this->elements[$index];
        }

        return null;
    }
1179057
public function getAliases($index = null)
    {
        $request = $this->createRequestInstance(self::INDEX_GET_ALIASES, $index, null);

        return $this->client->send($request);
    }
919849
protected function getSortingPart($index)
    {
        $sorting = $this->getSorting();
        if ($sorting === '') {
            return null;
        }

        $parts = explode(' ', $sorting);
        return isset($parts[$index]) ? $parts[$index] : null;
    }
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];
    }
508272
public function segment($index) {
		if (isset($this->segments[$index])) {
			return $this->segments[$index];
		}

		return null;
	}
256654
protected function resolve($index)
    {
        if (! isset($this->stack[$index]))
        {
            return new ErrorHandler;
        }

        $next = $this->resolve($index + 1);

        $item = $this->stack[(integer) $index];

        return new NextHandler($item, $next);
    }