@param string|null $index

@throws \Exception

@return \Elastica\Index
766501
protected function createZedClient($index = null): Index
    {

        if ($index === null) {
            $index = Config::get(ConditionalAvailabilityConstants::ELASTICA_PARAMETER__INDEX_NAME);
        }

        return parent::createZedClient($index);
    }
1119550
public function getOrException($index)
    {
        $index = (string) $index;
        $value = $this->get($index, null);
        if ($value === null) {
            throw new ResourceNotFoundException(sprintf('Get failed, index "%s" not found.', $index));
        }

        return $value;
    }
176897
protected function getValue($index)
    {
        if ($this->values[$index] === null) {
            return null;
        }
        return $this->values[$index]->value;
    }
720301
public function getParam($index){
        if(isset($this->params[$index])){
            return $this->params[$index];
        }else{
            return NULL;
        }
    }
1122716
public function childAtIndex( $index ) {
		if( $index !== null && isset($this->childElements[$index]) ) {
			return $this->childElements[$index];
		}

		return null;
	}
1103906
protected function getMatch($index)
    {

        return isset($this->lastMatches[$index]) ? $this->lastMatches[$index] : null;
    }
83196
public function getParamClean($index){
        if(isset($this->params[$index])){
            return $this->params[$index];
        }else{
            return NULL;
        }
    }
1095237
public function getElement($index)
    {
        return (array_key_exists((int) $index, $this->elements) ? $this->elements[$index] : null);
    }
1033117
public function getChildByIndex($index)
    {
        $index = intval($index);

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

		throw new MW_Tree_Exception( 'Invalid index for child' );
	}
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;
    }
421403
public function siblings($index = null)
    {
        if (!is_null($index)) {
            return Arr::get($this->parent->filters(), $index);
        }

        return $this->parent->filters();
    }
936480
public function getAutoShapeByIndex($index)
    {
        //check whether workshett name is set or not
        if ($this->worksheetName == '')
            throw new Exception('Worksheet name not specified');
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() .
            '/worksheets/' . $this->worksheetName . '/autoshapes/' . $index;
        $signedURI = Utils::sign($strURI);
        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');
        $json = json_decode($responseStream);
        return $json->AutoShape;

    }
1308075
public function at( $index ) {
			if ( is_int( $index ) ) {
				if ( $index >= 0 && $index < $this->len ) {
					return $this->items[ $index ];
				} else {
					throw new \browserfs\Exception('Index out of bounds!');
				}
			} else {
				throw new \browserfs\Exception('Invalid argument $index: Expected int');
			}
		}
103094
public function index($index = null) {
		if (is_null($index))
			return $this->discard('query.index');
	
		if ($index instanceof Column) {
			//get referred attribute
			$map = $this->entityProfile->getPropertyMap();
			if (!in_array($index->getName(), $map))
				throw new \InvalidArgumentException(sprintf("Column '%s' is unknown for class '%s'", $index->getName(), $this->entityProfile->getReflectionClass()->getName()));
			$name = array_flip($map)[$index->getName()];
		}
		elseif ($index instanceof Attr)
			$name = $index->getName();
		elseif (is_string($index))
			$name = $index;
		else
			throw new \InvalidArgumentException("Index must be specified through an Attr instance or a valid property name");
			
		//get custom type (if any)
		$type = ($index instanceof Field) ? $index->getType() : null;	
		if (isset($type))
			return $this->merge(['query.index' => $name. ':' . $type]);
		return $this->merge(['query.index' => $name]);
	}
880908
public function build($index, $default = null, $params = [])
    {
        $class = $this->get($index, $default);
        if (!class_exists($class)) {
            throw new \Exception('Class doesn\'t exist for the index : ' .$index);
        }

        $class = new \ReflectionClass($class);
        return $class->newInstanceArgs($params);
    }
300460
public function atomAt($index)
    {
        $atom = $this->atomAtDefault($index);
        if (null === $atom) {
            throw new Exception\UndefinedAtomException($index);
        }

        return $atom;
    }