Returns data visible from current scope.

@param string $key
@param mixed  $default

@return mixed
170455
public function get($key, $default = null)
    {
        if (\array_key_exists($key, $this->data)) {
            return $this->data[$key];
        }

        if (null === $this->parent) {
            return $default;
        }

        return $this->parent->get($key, $default);
    }
136737
public function get($key = null, $default = null)
    {
        if (!isset($this->_object) && $key == $this->_property) {
            return $this->_value;
        }

        return $this->getObject()->get($key, $default);
    }
1002446
public function getData($key = null, $default = null)
    {
        if (!isset($key)) {
            return $this->data;
        }

        $result = gplcart_array_get($this->data, $key);
        return isset($result) ? $result : $default;
    }
718822
public static function get($key, $default = null)
    {
        if (is_null($key)) {
            return $default;
        }

        return (isset($_GET[$key]) ? $_GET[$key] : $default);
    }
68814
public function get($key = null, $default = null)
    {
        if (!func_num_args()) {
            return $this->collection->all();
        }

        return $this->fetchFromArray($key, $default);
    }
1060579
public function get($key, $default = null)
    {
        $array = $this->data;
        foreach (explode(self::SEPERATOR, $key) as $item) {
            if (is_array($array) && array_key_exists($item, $array)) {
                $array = $array[$item];
            } else {
                return $default;
            }
        }

        return $array;
    }
1000185
public function get(string $key, $default = null)
    {
        if ($this->has($key)) {
            return parent::get($key)['value'];
        }

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

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

        return (!is_null($value)) ? $value : $default;
    }
436284
public function get($key, $default = null)
    {
        if (array_key_exists($key, $this->params)) {
            return $this->params[$key];
        }

        return $default;
    }
81139
public function get( $key, $default = NULL )
    {
        if ( $this->offsetExists( $key ) )
        {
            return $this->items[ $key ];
        }

        return Util::value( $default );
    }
142333
public function get($key, $default = null)
    {
        if ($this->hasAccessibleMethod($key)) {
            return $this->$key();
        }

        if ($this->hasAccessibleProperty($key)) {
            return $this->$key;
        }

        return $default;
    }
1125564
private function getBodyData(string $key, $default = null)
    {
        $body = $this->getParsedBody();

        if (is_array($body)) {
            return array_key_exists($key, $body) ? $body[$key] : $default;
        }

        if (is_object($body)) {
            return property_exists($body, $key) ? $body->{$key} : $default;
        }

        return $default;
    }
545316
public function get($key, $default = null)
    {
        $result = $this->load($key);
        return Arr::get(static::$configs[$result[0]], $result[1], $default);
    }
52800
public static function get($key, $default=null) {
		if( !isset(static::$main) ) {
			return $default;
		}
		return isset(static::$main->$key) ? static::$main->$key : $default;
	}
296045
public function get($key, $default = null)
    {
        $value = parent::get($key, $default);
        if (is_array($value)) {
            $value = array_shift($value);
        }
        return $value;
    }
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;
    }