original_string: public function id() : string
      {
          $id = $this->name();
          if ($this->prefix) {
              $id = implode('-', $this->prefix)."-$id";
          }
          $id = preg_replace('/[\W]+/', '-', $id);
          return trim(preg_replace('/[-]+/', '-', $id), '-');
      }
code: public function id() : string
      {
          $id = $this->name();
          if ($this->prefix) {
              $id = implode('-', $this->prefix)."-$id";
          }
          $id = preg_replace('/[\W]+/', '-', $id);
          return trim(preg_replace('/[-]+/', '-', $id), '-');
      }
code_tokens: public function id ( ) : string { $ id = $ this -> name ( ) ; if ( $ this -> prefix ) { $ id = implode ( '-' , $ this -> prefix ) . "-$id" ; } $ id = preg_replace ( '/[\W]+/' , '-' , $ id ) ; return trim ( preg_replace ( '/[-]+/' , '-' , $ id ) , '-' ) ; }
docstring: Returns the ID generated for the element.
  
  @return string
docstring_tokens: Returns the ID generated for the element .