original_string: public function createItem($text, $href, $title = '')
      {
          $breadcrumb = new BreadcrumbObject();
  
          $breadcrumb->setText($text);
          $breadcrumb->setHref($href);
  
          if ($title) {
              $breadcrumb->setTitle($title);
          }
  
          $this->breadcrumbs[] = $breadcrumb;
  
          return $breadcrumb;
      }
code: public function createItem($text, $href, $title = '')
      {
          $breadcrumb = new BreadcrumbObject();
  
          $breadcrumb->setText($text);
          $breadcrumb->setHref($href);
  
          if ($title) {
              $breadcrumb->setTitle($title);
          }
  
          $this->breadcrumbs[] = $breadcrumb;
  
          return $breadcrumb;
      }
code_tokens: public function createItem ( $ text , $ href , $ title = '' ) { $ breadcrumb = new BreadcrumbObject ( ) ; $ breadcrumb -> setText ( $ text ) ; $ breadcrumb -> setHref ( $ href ) ; if ( $ title ) { $ breadcrumb -> setTitle ( $ title ) ; } $ this -> breadcrumbs [ ] = $ breadcrumb ; return $ breadcrumb ; }
docstring: Creates an breadcrumb object with link and adds it to the crumbs list.
  
  @param string $text Text to show
  @param string $href Href of the link
  @param string $title Title to use
  
  @return \Core\Html\Bootstrap\Breadcrumb\BreadcrumbObject
docstring_tokens: Creates an breadcrumb object with link and adds it to the crumbs list .