public function get($key, $default = null)
        {
            if ($this->has($key)) {
                $isInvokable = is_object($this->values[$this->normalizeKey($key)]) && method_exists($this->values[$this->normalizeKey($key)], '__invoke');

                return $isInvokable
                ? $this->values[$this->normalizeKey($key)]($this)
                : $this->values[$this->normalizeKey($key)];
            }

            return $default;
        }
public function get($key, $default = null)
        {
            if ($this->has($key)) {
                $isInvokable = is_object($this->values[$this->normalizeKey($key)]) && method_exists($this->values[$this->normalizeKey($key)], '__invoke');

                return $isInvokable
                ? $this->values[$this->normalizeKey($key)]($this)
                : $this->values[$this->normalizeKey($key)];
            }

            return $default;
        }
public function get ( $ key , $ default = null ) { if ( $ this -> has ( $ key ) ) { $ isInvokable = is_object ( $ this -> values [ $ this -> normalizeKey ( $ key ) ] ) && method_exists ( $ this -> values [ $ this -> normalizeKey ( $ key ) ] , '__invoke' ) ; return $ isInvokable ? $ this -> values [ $ this -> normalizeKey ( $ key ) ] ( $ this ) : $ this -> values [ $ this -> normalizeKey ( $ key ) ] ; } return $ default ; }
Get values value with key
@param  string $key     The values key
@param  mixed  $default The value to return if values key does not exist
@return mixed           The values value, or the default value
Get values value with key