public function get($key = false, $default = false) {
        if ($key === false) {
          return $this->params;
        }

        if (!$this->has($key) && $default === false) {
          return new Param($key, null);
        }

        if (!$this->has($key) && $default !== false) {
          return new Param($key, $default);
        }

        return new Param($key, $this->params[$key]);
      }
public function get($key = false, $default = false) {
        if ($key === false) {
          return $this->params;
        }

        if (!$this->has($key) && $default === false) {
          return new Param($key, null);
        }

        if (!$this->has($key) && $default !== false) {
          return new Param($key, $default);
        }

        return new Param($key, $this->params[$key]);
      }
public function get ( $ key = false , $ default = false ) { if ( $ key === false ) { return $ this -> params ; } if ( ! $ this -> has ( $ key ) && $ default === false ) { return new Param ( $ key , null ) ; } if ( ! $ this -> has ( $ key ) && $ default !== false ) { return new Param ( $ key , $ default ) ; } return new Param ( $ key , $ this -> params [ $ key ] ) ; }
Get param value by key or false for all params
Optional set default if not found

@param bool $key
@param bool $default
@return Param|array
Get param value by key or false for all params Optional set default if not found