original_string: public function getMethod()
      {
          if (null !== $this->method) {
              return $this->method;
          }
  
          // If the form was created from a button rather than the form node, check for HTML5 method override
          if ($this->button !== $this->node && $this->button->getAttribute('formmethod')) {
              return strtoupper($this->button->getAttribute('formmethod'));
          }
  
          return $this->node->getAttribute('method') ? strtoupper($this->node->getAttribute('method')) : 'GET';
      }
code: public function getMethod()
      {
          if (null !== $this->method) {
              return $this->method;
          }
  
          // If the form was created from a button rather than the form node, check for HTML5 method override
          if ($this->button !== $this->node && $this->button->getAttribute('formmethod')) {
              return strtoupper($this->button->getAttribute('formmethod'));
          }
  
          return $this->node->getAttribute('method') ? strtoupper($this->node->getAttribute('method')) : 'GET';
      }
code_tokens: public function getMethod ( ) { if ( null !== $ this -> method ) { return $ this -> method ; } // If the form was created from a button rather than the form node, check for HTML5 method override if ( $ this -> button !== $ this -> node && $ this -> button -> getAttribute ( 'formmethod' ) ) { return strtoupper ( $ this -> button -> getAttribute ( 'formmethod' ) ) ; } return $ this -> node -> getAttribute ( 'method' ) ? strtoupper ( $ this -> node -> getAttribute ( 'method' ) ) : 'GET' ; }
docstring: Gets the form method.
  
  If no method is defined in the form, GET is returned.
  
  @return string The method
docstring_tokens: Gets the form method .