@param string $key

@return string
431854
public function getInverseMorphMap($key)
    {
        return array_key_exists($key, $this->morphMap) ? $this->morphMap[$key] : $key;
    }
338995
protected function getSetter($key)
    {
        $key = str_replace('_', ' ', $key);
        $key = ucwords($key);
        $key = str_replace(' ', '', $key);

        return 'set'.$key;
    }
60879
public static function namespaceAsArrayKey(string $key) : string
    {
        $keys = \explode('\\', $key);
        $className = \end($keys);

        return self::camelCaseToUnderscore($className);
    }
1332085
private function getKey ( $key = NULL ) {
        if ($key === NULL) {
            $key = $this->__keyName;
            return $this->getClassKey() . '_' . $this->$key;
        }
        return $this->getClassKey() . '_' . $key;
    }
1262858
public function translate(string $key) {
        if (!$this->supports($key)) {
            return $key;
        }

        return $this->translations[$key];
    }
991989
public static function filterCacheKey(string $key): string
    {
        $key = preg_replace('#[/-]#', '.', $key);
        $key = preg_replace('#[^A-Za-z0-9_\.]#', '_', $key);

        return strtolower($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));
    }
1055479
protected function cacheFile(string $key): string
	{
		return $this->cachePath . '/' . str_replace(['/', ':'], '_', $this->getPrefixedKey($key)) . '.php';
	}
670624
protected function fragment(string $key): string
    {
        $property = $this->props[$key] ?? $this->default;

        return '(?<' . $key . '>(' .
            implode('|', $this->types($property['types'])) .
            '))';
    }
883844
public function normalizeKey(string $key): string
    {
        $key = strtr(strtolower(trim($key)), '_', '-');

        if (strpos($key, 'http-') === 0) {
            $key = substr($key, 5);
        }

        return $key;
    }
1095574
protected function translate($key)
  {
    $key = strtoupper($key);
    if ( isset(self::$translations[$key]) ){
      return self::$translations[$key];
    }
    
    return $key;
  }
581797
private static function formatParamsKey($key): string
    {
        if (\is_string($key) && \strpos($key, ':') === false) {
            return ':' . $key;
        }

        return $key;
    }
1082956
public function normalizeKey($key)
    {
        $key = strtolower($key);
        $key = str_replace(array('-', '_'), ' ', $key);
        $key = preg_replace('#^http #', '', $key);
        $key = ucwords($key);
        $key = str_replace(' ', '-', $key);

        return $key;
    }
408443
protected function normalizeKey($key)
    {
        if (preg_match(static::$arrayKey, $key, $matches)) {
            $key = $matches[1];
            return $key;
        }
        return $key;
    }
420735
private function getParameterName($key)
    {
        $parameterName = $this->parameters->get('parameter_name');
        if (isset($parameterName[$key]) && !is_array($parameterName[$key])) {
            return $parameterName[$key];
        }

        return $key;
    }
284427
protected static function name(string $key): string
    {
        if (!isset(static::$names[$key]))
        {
            static::$names[$key] = Flow::VERSION . \sha1($key);
        }

        return static::$names[$key];
    }
964284
protected function parseKey(&$key) {
        $key   =  trim($key);
        if(!is_numeric($key) && !preg_match('/[,\'\"\*\(\)\[.\s]/',$key)) {
           $key = '['.$key.']';
        }
        return $key;   
    }