original_string: public function setListElement($element)
      {
          if (!is_string($element)) {
              throw new \InvalidArgumentException(
                  'Breadcrumbs::setListElement() only accepts strings, but '
                  . (is_object($element) ? get_class($element) : gettype($element))
                  . ' given: ' . print_r($element, true)
              );
          }
  
          $this->listElement = $element;
  
          return $this;
      }
code: public function setListElement($element)
      {
          if (!is_string($element)) {
              throw new \InvalidArgumentException(
                  'Breadcrumbs::setListElement() only accepts strings, but '
                  . (is_object($element) ? get_class($element) : gettype($element))
                  . ' given: ' . print_r($element, true)
              );
          }
  
          $this->listElement = $element;
  
          return $this;
      }
code_tokens: public function setListElement ( $ element ) { if ( ! is_string ( $ element ) ) { throw new \ InvalidArgumentException ( 'Breadcrumbs::setListElement() only accepts strings, but ' . ( is_object ( $ element ) ? get_class ( $ element ) : gettype ( $ element ) ) . ' given: ' . print_r ( $ element , true ) ) ; } $ this -> listElement = $ element ; return $ this ; }
docstring: Set the containing list DOM element
  
  @param string $element
  @return $this
docstring_tokens: Set the containing list DOM element