original_string: protected function set_url($url) {
          if ($url instanceof \moodle_url) {
              $url = $url->out(false);
          }
          $this->raw_set('url', $url);
      }
code: protected function set_url($url) {
          if ($url instanceof \moodle_url) {
              $url = $url->out(false);
          }
          $this->raw_set('url', $url);
      }
code_tokens: protected function set_url ( $ url ) { if ( $ url instanceof \ moodle_url ) { $ url = $ url -> out ( false ) ; } $ this -> raw_set ( 'url' , $ url ) ; }
docstring: Convenience method handling moodle_urls.
  
  @param null|string|moodle_url $url The URL.
docstring_tokens: Convenience method handling moodle_urls .