Returns the value associated with the key <i>$key</i>.

@param mixed $value
@param string $defaultKey
@return string
@throws MWrongTypeException
18375
public function getKey($value, ?string $defaultKey = null): string
    {
        if ($this->isValidType($value) === false) {
            throw new MWrongTypeException("\$value", $this->getType(), $value);
        }

        $key = array_search($value, $this->map);

        if ($key === false && is_null($defaultKey) === false) {
            $key = $defaultKey;
        }

        return $key;
    }
48658
@Override
  public String get(String key, String defaultValue)
  {
    String value = _map.get(key);

    if (value != null) {
      return value;
    }
    else {
      return defaultValue;
    }
  }
753402
public function getConfigurationValue($key, $default = null)
    {
        if (is_array($this->configuration) && array_key_exists($key, $this->configuration)) {
            return $this->configuration[$key];
        }

        return $default;
    }
1131799
private function getDefaultValue($key, $default = null)
    {
        $value = null === $default && \array_key_exists($key, $this->defaults)
            ? $this->defaults[$key]
            : $default;

        return $this->getByManager($key, $value, $default);
    }
937668
public function get($key, $default = null)
    {
        $key = strtolower($key);

        if (!array_key_exists($key, $this->data)) {
            if (null === $default) {
                return null;
            }

            return $default;
        }

        return $this->data[$key];
    }
847358
public function getValueOrDefault($key, $default = null) {
        if (!empty($this->values[$key])) {
            return $this->values[$key];
        }
        elseif (!empty($this->defaults[$key])) {
            return $this->defaults[$key];
        }
        else {
            return $default;
        }
    }
329215
public function get($key, $default = NULL) {
    $value = parent::get($key);

    if (isset($value)) {
      return $value;
    }

    return $default;
  }
842033
public function get($key, $default = null) {
        $value = $this->memcached->get($key);

        if ($this->memcached->getResultCode() == 0) {
            return $value;
        }

        return $default;
    }
378534
public static function get($key=null,$default=null){
    return $key ? (filter_input(INPUT_GET,$key) ?: (is_callable($default)?call_user_func($default):$default)) : $_GET;
  }
718822
public static function get($key, $default = null)
    {
        if (is_null($key)) {
            return $default;
        }

        return (isset($_GET[$key]) ? $_GET[$key] : $default);
    }
724222
public function value($key, $default = null)
    {
        return array_key_exists($key, $this->values)
            ? $this->values[$key]
            : $default;
    }
835403
public function input($key, $default = null)
    {
        if (($value = $this->params->get($key)) !== null) {
            return $value;
        }

        if (($value = $this->payload->get($key)) !== null) {
            return $value;
        }

        return $default;
    }
774898
public function get(string $key, $default = null)
    {
        $result = $this->iterateConfig($key);

        return is_null($result) ? $default : $result;
    }
1306530
private function getValue(string $key, $value = null)
    {
        if (! is_null($this->language)) {
            $key = $this->language.'.'.$key;
        }

        if (! is_null($this->prefix)) {
            $key = $this->prefix.'.'.$key;
        }

        $data = $this->data->getContent($key);

        // default value
        if (is_null($data)) {
            return $value;
        }

        if ($value instanceof \Closure) {
            return $value($data, $this->data);
        }

        return $data;
    }
475736
public function get($key, $default = null)
    {
        if ($this->has($key)) {
            return $this->values[$key][static::VALUE];
        }

        return $default;
    }
1131230
public static function get($key, $default = "", $validator = null)
    {
        $me = self::getInstance();

        if (isset($me->parameters[$key]) ) {
            $value = $me->parameters[$key];
        } else if ( isset($_REQUEST[$key]) ) {
            $value = $_REQUEST[$key];
        } else {
            $value = $me->processDefaultValue($default);
        }

        if ($validator instanceof Validator) {
            if ( $validator->execute($value) ) {
                return $value;
            } else {
                return $me->processDefaultValue($default);
            }

        } else if (is_callable($validator)) {
            try {
                if ($validator($value) ) {
                    return $value;
                } else {
                    return $me->processDefaultValue($default);
                }
            } catch (Exception $e) {
                throw FrameworkException::internalError("Validator error");
            }
        }
        return $value;
    }
24193
public function get(string $key, $defaultValue = null)
    {
        $key = $this->prepareKey($key);
        return Arr::get($this->properties, $key, $defaultValue);
    }