Determines a value for the given key.

@param string $key

@return mixed
347063
protected function valueForKey($key) {
    // Attempt to create the non-existing service.
    $method = 'get_' . $key;
    if (!method_exists($this, $method)) {
      if (isset($this->defaults[$key])) {
        return $this->defaults[$key];
      }
      // Keys are only 'known' if there is a get_ method.
      throw new MiniContainerException(sprintf('Unknown key "%s".', $key));
    }
    return $this->$method();
  }
1129307
public function get($key)
    {
        $setting = SettingModel::where('key', $key)->first();

        return $setting ? $setting->value : false;
    }
997641
public function get($key)
	{
		if ($value = $this->memcache->get($this->prefix.$key)) {
		    return $value;
		}
	}
1316675
public function getValue($key) {
		if(isset($this->jsonArray[$key])) {
			return $this->jsonArray[$key];
		}

		return NULL;
	}
1318247
public function get(string $key)
    {
        if (!isset($this->values[$key])) {
            $value = ini_get($key);

            switch (self::CONVERSIONS[$key] ?? 0) {
                case self::CONVERT_TO_BOOL:
                    $value = Str::toBoolean($value);
                    break;
                case self::CONVERT_TO_INT:
                    $value = (int) $value;
                    break;
                case self::CONVERT_TO_BYTES:
                    $value = self::convertToBytes($value);
                    break;
            }

            $this->values[$key] = $value;
        }

        return $this->values[$key];
    }
1208400
public function getValue($key)
    {
        return array_key_exists($key, $this->data)
            ? $this->data[$key]
            : null;
    }
376063
public function offsetGet( $key )
    {
        $key = strtolower( $key );
        if ( !array_key_exists( $key, $this->lookup ) )
        {
            return null;
        }
        return $this->map[$this->lookup[$key]];
    }
10368
public function lookup($key)
    {
        foreach ($this->value as $innerKey => $value) {
            if ($key === $innerKey) {
                return Maybe::just($value);
            }
        }

        return Maybe::nothing();
    }
821646
public function get($key)
    {
        return isset($this->vars[$key]) ? $this->vars[$key] : false;
    }
698821
protected function &getAttributeValue(string $key)
    {
        if (isset($this->attributes[$key])) {

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

        $null = null;

        return $null;
    }
646730
public function getValueByKey($key)
    {
        $model = Configuration::whereConfigurationKey($key)->first();

        if (null === $model) {
            return null;
        }

        return $model->configuration_value;
    }
446197
public function getOrFail($key)
    {
        $value = $this->get($key, new None());
        if (!$value instanceof None) {
            return $value;
        }
        throw new KeyNotFoundException("Key '$key' not found'");
    }
1050692
public function getValue($key) {
		if (isset ( $this->a [$key] )) {
			return $this->a [$key];
		} else {
			return NULL;
		}
	}
250960
public function getKeyValue($key)
    {
        return empty($this->_data[$key]) ? null: $this->_data[$key];
    }
143779
public function offsetGet($key)
    {
        if(array_key_exists($key, $this->resolved)) {
            return $this->resolved[$key];
        }

        return $this->make($key);
    }
179621
public function offsetGet($key) {
		$hashCode = HashUtils::hashCode($key);
		if (isset($this->values[$hashCode])) {
			return $this->values[$hashCode];
		}
		return null;
	}
1164325
public function getBooleanValue($key)
    {
        $value = $this->get($key);
        if ($value === null) {
            return null;
        }
        return ($value === true or $value === 1);
    }