@param int $key

@return Type
320275
private static function makeCachedType($key) {
        if (!isset(self::$typeCache[$key])) {
            self::$typeCache[$key] = new Type($key);
        }
        return self::$typeCache[$key];
    }
75183
public function newFromKey($key)
    {
        $scope = $this->get($key);
        if ($this->checkRefs && is_array($scope)) {
            $this->replaceRefs($key, $scope);
        }
        $result = new static($scope);

        return $result;
    }
117265
public function get($type, $key)
    {
        if (array_key_exists($key, self::$store)) {
            //TODO: implement expiration check
            // implement data type check?
            return self::$store[$key]['value'];
        }
        return null;
    }
147979
public function key($key = null) {
		if($key === null) return $this->key;
		$this->key = $key;
		return $this;
	}
1113725
private function resolverType(string $section, string $key)
    {
        return $this->typeRegistry->get(
            $this->schemaRegistry->get($section, $key)->getType()
        );
    }
452623
public function loadElement($type, $key)
    {
        $json = $this->load();
        $fields = array();
        $columns = $json[$type]["elements"][$key]["columns"];

        //Check if it is an array before trying to count it
        if (is_array($columns) && count($columns) > 0) {
            foreach ($columns as $fieldName) {
                $fields[$fieldName] = $json[$type]["tca"][$fieldName];
            }
        }
        if (count($fields) > 0) {
            $json[$type]["elements"][$key]["tca"] = $fields;
        }
        return $json[$type]["elements"][$key];
    }
320119
public function remove($key)
    {
        if ($this->has($key)) {
            $cont = clone $this;
            $cont->removeParameter($key);

            return $cont;
        }

        return $this;
    }
983016
public static function getInstance($key)
	{
		if (!isset(self::$instance[$key])) {
			self::$instance[$key] = new Debugger();
		}
		return self::$instance[$key];
	}
428951
public function forget($key, $type)
	{
		if(is_array($key))
		{
			return $this->forgetItem($this->storageKey($key), $type);
		}

		if(is_string($key))
		{
			return $this->forgetItem($key, $type);
		}

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

        return $this->idToObject[$key];
    }
640351
public function getInteger($key)
	{
		$resolved = false;
		$value = $this->getByKey($key, $this->data, $resolved);
		
		if($resolved)
		{
			return (int)$value;
		}
		
		if(func_num_args() > 1)
		{
			return func_get_arg(1);
		}
		
		throw new \OutOfBoundsException('Configuration setting not found: "' . $key . '"');
	}
932520
public static function get($key = null)
    {
        if (null === self::$instance) {
            self::$instance = new self();
        }

        return $key ? self::$instance[$key] : self::$instance;
    }
1217474
public function getParamByKey($key)
    {
        if (isset($this->extParams[$key]))
        {
            return $this->extParams[$key];
        }

        return null;
    }
977460
public function column($key)
    {
        $result = array_column($this->all(), $key);

        if (empty($result)) {
            $this->each(function ($item) use (&$result, $key) {
                array_push($result, $item->{$key});
            });
        }

        return new static($result);
    }
652370
public function getInt($key)
    {
        try {
            $result = $this->get(self::INT, $key);
            if (!settype($result, 'integer')) {
                return 0;
            }
        } catch (\Exception $e) {
            return 0;
        }
        return $result;
    }
420770
public function decr($key)
    {
        $this->log(__FUNCTION__, $key);
        return $this->persistence->decr($key);
    }
1235169
public function get($key)
    {
        if (isset($this->mediaTypes[$key])) {
            return $this->mediaTypes[$key];
        }

        return null;
    }