Get an item from the collection by key.

@param mixed $key
@param mixed $default

@return mixed|static
17762
public function get($key, $default = null)
    {
        if ($this->offsetExists($key)) {
            return is_array($this->items[$key]) ? new static($this->items[$key]) : $this->items[$key];
        }

        return value($default);
    }
1250709
public function getOne($key, $default = null)
    {
        $ret = $default;
        $all = $this->get($key);
        if (count($all) > 0) {
            $ret = array_shift($all);
        }

        return $ret;
    }
372878
public static function get($key, $default = NULL) {
        if (isset(self::$configs[$key]))
            return self::$configs[$key];

        return $default;

    }
699367
public function get($key, $default = null)
    {
        $array = $this->objects;

        if (isset($array[$key])) {
            return $array[$key];
        }
        foreach (explode('\\', $key) as $segment) {
            if (!is_array($array) || !array_key_exists($segment, $array)) {
                return $default;
            }
            $array = $array[$segment];
        }
        return $array;
    }
296850
public function get(string $key, $default = null)
    {
        $value = Arr::get($this->items, $key);

        if (\is_null($value)) {
            return \value($default);
        }

        return $value;
    }
114962
public function get($key, $default = NULL) {

		return array_key_exists($key, $this->data) ? $this->data[$key] : $default;

	}
39000
public function get($key, $default = null) {
		if (!$this->has($key)) {
			return $default;
		}
		$rs = $this->conf->get($key);
		if (is_object($rs)) {
			$rs = $rs->toArray();
		}
		return $rs;
	}
544880
public function get($key, $default = null)
    {
        $this->checkKey($key);
        if ($this->noCache()) {
            return $default;
        }
        $value = $this->getRedis()->get($this->filterKey($key));
        return $value === false ? $default : $value;
    }
227407
public function get($key, $default = null)
	{
		$this->load();

		return ArrayUtil::get($this->data, $key, $default);
	}
329215
public function get($key, $default = NULL) {
    $value = parent::get($key);

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

    return $default;
  }
278116
public static function get($key, $default = null)
    {
        return isset(self::$variables[$key]) ? self::$variables[$key] : $default;
    }
114542
public function get($key, $default = null)
    {
        return array_key_exists($key, $this->consumers) ? $this->consumers[$key] : $default;
    }
639968
public function get($key, $default = null)
    {
        if(!$this->has($key))
            return $default;

        return DotArray::get($this->storage, $key);
    }
810783
private function get($key, $default = null)
    {
        if (isset($this->responseData['error'][$key])) {
            return $this->responseData['error'][$key];
        }

        return $default;
    }
729942
public function get($key, $default = null)
    {
        return array_key_exists($key, $this->producers) ? $this->producers[$key] : $default;
    }
97647
public static function get($key = null, $default = null)
    {
        if (!empty($key)) {
            return isset(static::$settings[$key]) ? static::$settings[$key] : $default;
        }

        return static::$settings;
    }
1286686
public function get($key, $default = null)
    {
        $this->checkLoaded();

        return Arr::get($this->data, $key, $default);
    }