@param mixed $key

@return ArrayItem

@throws OutOfBoundsException if $key does not exist in the array
171102
public function remove($key)
    {
        if (!$this->has($key)) {
            throw new OutOfBoundsException(sprintf('This ArrayItem has no element with key "%s".', $key));
        }

        unset($this->data[$key]);

        return $this;
    }
1029468
public function getItem($key)
    {
        $this->validateKey($key);

        if ($this->hasItem($key)) {
            $data = file_get_contents($this->getPath($key));
            if ($data !== false) {
                $item = unserialize($data, [
                    "allowed_classes" => true,
                ]);

                if (!$item instanceof CacheItemInterface) {
                    throw new CacheException("Unexpected object during deserialization: " . get_class($item));
                }

                return $item;
            }
        }

        # If we didn't find a suitable item then create a new one now
        return new Item($key);
    }
466596
public function getPropertyItem($key) {
		if ($this->containsPropertyItemKey($key)) {
			return $this->propertyItems[$key];	
		}
	
		return $this->createPropertyItem($key);
	}
1145597
protected function find(array $array, string $key)
    {
        $item = $array;

        foreach (explode('.', $key) as $segment) {
            if (is_array($item) && array_key_exists($segment, $item)) {
                $item = $item[$segment];
            } else {
                throw new \Exception();
            }
        }

        $this->cache[$key] = &$item;

        return $item;
    }
718963
function get($key) {
        if(\is_array($key) || \is_object($key)) {
            throw new \InvalidArgumentException('Key can not be an array or object');
        }
        
        $key = (string) $key;
        return parent::get($key);
    }
57626
public function getItem($key)
    {
        if (!$this->isValidEntryIdentifier($key)) {
            throw new InvalidArgumentException('"' . $key . '" is not a valid cache entry identifier.', 1514738649629);
        }

        $rawResult = $this->backend->get($key);
        if ($rawResult === false) {
            return new CacheItem($key, false);
        }

        $value = unserialize($rawResult);
        return new CacheItem($key, true, $value);
    }
380641
public function load($key)
    {
        $data = $this->adapter->getItem($key, $success);

        if ($success && $this->automaticSerialization) {
            $data = unserialize($data);
            
            if ($data === false) {
                $this->remove($key);
            }
        }

        return $data;
    }
155827
public function get($primaryKey, $secondaryKey)
    {
        if (!isset($this->values[$primaryKey][$secondaryKey])) {
            throw new OutOfBoundsException(sprintf(
                'The key ("%s","%s") does not exist.',
                $primaryKey,
                $secondaryKey
            ));
        }

        return $this->values[$primaryKey][$secondaryKey];
    }
839989
public function getObject($key)
    {
        if (false === $this->hasId($key)) {
            throw new \OutOfBoundsException('no id=' . $key . ' at the identity-map');
        }

        return $this->idToObject[$key];
    }
1267037
public function offsetGet($offset)
    {
        if (false === array_key_exists($offset, $this->container)) {
            throw OutOfBoundsException::arrayKey($offset);
        }

        if (is_callable($this->container[$offset])) {
            return $this->container[$offset]($this);
        }

        return $this->container[$offset];
    }
26330
protected function searchItem($key)
    {
        if (isset($this->form[ $key ])) {
            return $this->form[ $key ];
        }

        foreach ($this->form as $input) {
            if ($input[ 'type' ] != 'group') {
                continue;
            }

            if (($subform = $input[ 'subform' ]->searchItem($key)) !== null) {
                return $subform;
            }
        }

        return null;
    }
66159
public function getItem(string $key)
    {
        $this->checkCallback();
        if (isset($this->members[$key])) {
            return $this->members[$key];
        } else {
            throw new CollectionException('Unable to retrieve item from collection - key ' . $key . ' not found.');
        }
    }
839030
public function getItem($key)
    {
        if (false === $this->hasItem($key)) {
            throw new ConfigException(sprintf('item "%s" not available', $key));
        }

        return $this->configData[$key];
    }
601996
public function pull($key)
    {
        if (!$this->containsKey($key)) {
            return null;
        }
        $removed = $this->items[$key];
        unset($this->items[$key]);

        return $removed;
    }
718496
public function get($key)
    {
        if (isset($this->overrides[$key])) {
            return $this->overrides[$key];
        }

        if (isset($this->defaults[$key])) {
            return $this->defaults[$key];
        }

        throw new OutOfBoundsException("The given key '$key' was not present in the settings.");
    }
10131
public function getFloat($key)
	{
		$resolved = false;
		$value = $this->getByKey($key, $this->data, $resolved);
		
		if($resolved)
		{
			return floatval($value);
		}
		
		if(func_num_args() > 1)
		{
			return func_get_arg(1);
		}
		
		throw new \OutOfBoundsException('Configuration setting not found: "' . $key . '"');
	}
969032
public function getItem($key)
    {
        // Get the element from the buffer if still remains valid!
        if (in_array($key, $this->bufferKeys)) {
            $cacheItem = $this->buffer[$key];
            if ($cacheItem->getExpiresInSecs() > 1) {
                return $cacheItem;
            }
        }
        
        // Get the element from the cache!
        $result = $this->_cacheEngine->get($key);
        $cache = new CacheItem($key, $result, $result !== null);

        $this->addElementToBuffer($cache);

        return $cache;
    }