Returns a certain stage from the pipeline

@param integer $index
@return Stage
172910
public function getStage($index)
    {
        if ( ! isset($this->stages[$index])) {
            throw new \OutOfRangeException("Could not find stage with index {$index}.");
        }

        return $this->stages[$index];
    }
890809
public function getCapture($index)
    {
        if (isset($this->captures[$index])) {
            return $this->captures[$index];
        } else {
            return null;
        }
    }
180873
public function withIndex(int $index): self
    {
        $state = clone $this;
        $state->_index = $index;
        return $state;
    }
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
    }
1033117
public function getChildByIndex($index)
    {
        $index = intval($index);

        return ((null !== $this->children) && array_key_exists($index, $this->children)) ? $this->children[$index] : null;
    }
508272
public function segment($index) {
		if (isset($this->segments[$index])) {
			return $this->segments[$index];
		}

		return null;
	}
242796
public function select($index) {
    $this->init();
    
    $this->select = $index;
    $this->html->getTemplateContent()->select =
      jsHelper::embed(
        jsHelper::bootLoad(
          array('app/main'),
          array('main'),
          sprintf("var tabs = main.getTabs(), tab = tabs.tab({index: %d});\n    tabs.select(tab);", $this->select)
        )
      )
    ;
    return $this;
  }
620739
public ManagementStage getStage(final int index) {

		if (index >= 0 && index < this.stages.size()) {
			return this.stages.get(index);
		}

		return null;
	}
227825
public function getChildByIndex($index)
    {
        return isset($this->children[$index]) ? $this->children[$index] : null;
    }
176897
protected function getValue($index)
    {
        if ($this->values[$index] === null) {
            return null;
        }
        return $this->values[$index]->value;
    }
547620
public function at($index){
        $return = NULL;
        $index = intval($index);
        $data = $this->asArray();
        reset($data);
        if ($index < 0){
            $index += $this->length();
        }
        $c = 1;
        while ($c <= $index){
            next($data);
            $c++;
        }
        $return = current($data);
        $Model = $this->buildModel($return);
        if ($Model !== NULL){
            $return = $Model;
        }
        return $return;
    }
1221493
public function getItem($index) {
		if (is_int($index)&& isset($this->content[$index]))
			return $this->content[$index];
		else {
			$elm=$this->getElementById($index, $this->content);
			return $elm;
		}
	}
519117
public function get($index)
    {
        $index = intval($index);
        $i = 0;
        foreach ($this->getInnerIterator() as $v) {
            if ($i == $index) {
                return $v;
            }
            $i++;
        }

        return null;
    }
241679
private function getByIndex($index)
    {
        if (!isset($this->headers[$index])) {
            return null;
        }
        if ($this->headerObjects[$index] === null) {
            $this->headerObjects[$index] = $this->headerFactory->newInstance(
                $this->headers[$index][0],
                $this->headers[$index][1]
            );
        }
        return $this->headerObjects[$index];
    }
400926
public function pop($index = null)
    {
        if (is_null($index)) {
            return array_pop($this->source);
        }

        $previousValue = $this->offsetGet($index);

        array_splice($this->source, $index, 1);

        return $previousValue;
    }
565674
public function get($index)
    {
        $returnValue = null;

        
			
		$returnValue = isset($this->sequence[$index]) ? $this->sequence[$index] : null;
		if($returnValue == null) {
			throw new common_Exception('index is out of range');
		}
        

        return $returnValue;
    }
331293
public function get($index = null, $type = null)
    {
        return array_filter(
            $this->entries,
            function($entry) use ($index, $type) {
                return $entry->match($index, $type);
            }
        );
    }