@param $key

@return int|string
769953
private function makeKey($key)
    {
        return is_numeric($key) || strpos($key, '`') !== false || strpos($key, ' ') !== false || strpos($key, '.') ||
               strpos($key, ',') || strpos($key, '(')
            ? $key
            : '`' . $key . '`';
    }
828283
private static function keyString($key): string
    {
        return $key === null || is_scalar($key)
            ? (string) $key
            : (is_object($key) ? spl_object_hash($key) : self::arrayKeyString($key));
    }
406934
public function get(string $key): string
    {
        if (!isset($this->data[$key])) {
            $this->data[$key] = $key;
        }

        return $this->data[$key];
    }
1166840
public function attribute(string $key)
    {
        if (! isset($this->attributes[$key])) {
            return '';
        }

        return $this->attributes[$key];
    }
1291233
public function getKey(string $key)
    {
        $keys = explode('.', $key);
        $file = array_shift($keys);
        $keys = explode('/', implode('.', $keys));

        if (!isset($this->translations[$file])) {
            $this->addFile($file);
        }

        return $this->findKey($file, $keys);
    }
602358
public function getParam($key)
    {
        return isset($this->params[$key]) ? $this->params[$key] : null;
    }
972472
public function read($key)
    {
        $key = $this->_key($key);

        $value = $this->_Redis->get($key);
        if (preg_match('/^[-]?\d+$/', $value)) {
            return (int)$value;
        }
        if ($value !== false && is_string($value)) {
            return unserialize($value);
        }

        return $value;
    }
1298750
public function getParameter($key)
    {
        if (true === isset(self::$parameters[$key])) {
            $value = self::$parameters[$key];
        } else {
            throw new Doozr_Registry_Exception(
                sprintf('Key "%s" does not exist!', $key)
            );
        }

        return $value;
    }
1260097
public function parseKey($key)
	{
		$segments = parent::parseKey($key);

		if (is_null($segments[0])) $segments[0] = '*';

		return $segments;
	}
748930
public static function incr(string $key)
    {
        $currentValue = self::get($key);

        return self::set($key, (int)$currentValue + 1);
    }
576783
public function getCount(string $key): int
    {
        if (\array_key_exists($key, $this->data)) {
            if (\is_array($this->data[$key])) {
                return \count($this->data[$key]);
            }
            
            return 1;
        }
        
        return 0;
    }
446342
protected function arguments($key)
    {
        //-> to filter
        if (isset($this->arguments[0][$key])) {
            return $this->arguments[0][$key];
        }
        return $this->serialize->undefined();
    }
611243
public function get($key)
    {
        $getResult = $this->getValue($key);
        $unserialized = @unserialize($getResult);

        if (Util::hasInternalExpireTime($unserialized)) {
            $getResult = $unserialized['v'];
        }

        return $getResult;
    }
183220
public function getParam(String $key) {

		return $this->params[$key] ?? $this->httpErrors[$key] ?? null;

	}
1236260
public function get(string $key): string
    {
        $key = $this->getKey($key);
        $value = $this->headers[$key] ?? "";
        return is_array($value) ? implode(", ", $value) : $value;
    }
536267
public function normalize($key)
    {
        if (strlen($key) > $this->length) {
            $checksum = dechex(crc32($key));
            return substr($key, 0, $this->length - strlen($checksum)) . $checksum;
        }

        return $key;
    }
320746
public function getParameterType(string $key)
    {
        if (!array_key_exists($key, $this->params))
            throw new OutOfRangeException("Invalid key: $key");

        return $this->param_types[$key];
    }