TODO

@param bool $index
@return mixed
333422
public function name($index = false)
    {
        if (isset($this->upload['error'])) {
            if ($index === false) {
                return $this->upload['name'];
            }
            return $this->upload['name'][$index];
        }
        return false;
    }
784027
public function getTotalTime(bool $indexed = false)
    {
        if ($this->profiles == null) {
            return null;
        }

        $totalTime = 0.00;
        $totalTimeIndexed = '';
        if (isset($this->profiles['connection'])) {
            $totalTime += $this->profiles['connection']['time'];
            if ($indexed) {
                $totalTimeIndexed .= "connection({$totalTime})";
            }
        }

        if (isset($this->profiles['query'])) {
            foreach ($this->profiles['query'] as $i => $profile) {
                $totalTime += $profile['time'];
                if ($indexed) {
                    $totalTimeIndexed .= " query{$i}({$profile['time']})";
                }
            }
        }

        return !$indexed ? $totalTime : $totalTimeIndexed;
    }
88468
public function getNode($index)
    {
        if (is_string($index) and in_array($index, $this->nodesEntities)) {
            if (false !== ($key = array_search($index, $this->nodesEntities))) {
                if ($this->offsetExists($key)) {
                    return $this->offsetGet($index);
                }
            }
        }

        return false;
    }
779632
public function get($index)
    {
        if( $index >= count($this->generators) || $index < 0 )
            return null;
          
        return $this->generators[$index];
    }
892125
public function offsetUnset ($index)
	{
		$value = $this->offsetGet($index);

		if ($index == 0) {
			return array_shift($this->storage);
		}

		if ($index == $this->count() - 1) {
			return array_pop($this->storage);
		}

		$new = $this->slice(0, $index - 1);
		$new->push($this->slice($index, $this->count()));

		$this->storage = $new->to_array();

		return $value;
	}
720301
public function getParam($index){
        if(isset($this->params[$index])){
            return $this->params[$index];
        }else{
            return NULL;
        }
    }
104095
public static function getDeleted(Index $index)
    {
        $change = new IndexMigrationChange();

        $change->isDeleted = true;
        $change->index = $index;

        return $change;
    }
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;
    }
687040
public function loadResult($index = 0)
    {
        if ($this->stmt === null) {
            return null;
        }

        $singleResult = $this->stmt->fetch(\PDO::FETCH_NUM);
        return $singleResult[$index];
    }
1149403
public function offsetGet( $index )
    {
        if( !isset( $this->collection[$index] ) ){
            return null;
        }
        return $this->collection[$index];
    }
1008047
public function getByIndex($index)
    {
        if (isset($this->elements[$index])) {
            return $this->elements[$index];
        }

        return null;
    }
269920
private function _get($index, $accept_reverse_index)
    {
        $values = $this->getValues();
        if ($accept_reverse_index){
            $index = $this->_rindex($index, $values);
        }
        return $values[$index] ?? null;
    }
519117
public function get($index)
    {
        $index = intval($index);
        $i = 0;
        foreach ($this->getInnerIterator() as $v) {
            if ($i == $index) {
                return $v;
            }
            $i++;
        }

        return null;
    }
1033117
public function getChildByIndex($index)
    {
        $index = intval($index);

        return ((null !== $this->children) && array_key_exists($index, $this->children)) ? $this->children[$index] : null;
    }
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;
    }
1231887
public function getMappings($index)
    {
        $config = $this->get($index);

        if (null === $config || !isset($config['mappings'])) {
            return null;
        }

        return $config['mappings'];
    }
831005
public function all($index = null)
	{
		if (empty($index)) {
			return $this->items;
		} elseif (array_key_exists($index, $this->items) && is_array($this->items[$index])) {
			return $this->items[$index];
		} else {
			return [];
		}
	}