original_string: public function add_action(moodle_url $url, $label, $method = 'get') {
  
          $action = new stdClass();
          $action->url = $url;
          $action->label = $label;
          $action->method = $method;
  
          $this->actions[] = $action;
      }
code: public function add_action(moodle_url $url, $label, $method = 'get') {
  
          $action = new stdClass();
          $action->url = $url;
          $action->label = $label;
          $action->method = $method;
  
          $this->actions[] = $action;
      }
code_tokens: public function add_action ( moodle_url $ url , $ label , $ method = 'get' ) { $ action = new stdClass ( ) ; $ action -> url = $ url ; $ action -> label = $ label ; $ action -> method = $ method ; $ this -> actions [ ] = $ action ; }
docstring: Adds a new action
  
  @param moodle_url $url action URL
  @param string $label action label
  @param string $method get|post
docstring_tokens: Adds a new action