public function setListItemCssClass($class)
    {
        if (!is_string($class)) {
            throw new \InvalidArgumentException(
                'Breadcrumbs::setListItemCssClass() only accepts strings, but '
                . (is_object($class) ? get_class($class) : gettype($class))
                . ' given: ' . print_r($class, true)
            );
        }

        $this->listItemCssClass = $class;

        return $this;
    }
public function setListItemCssClass($class)
    {
        if (!is_string($class)) {
            throw new \InvalidArgumentException(
                'Breadcrumbs::setListItemCssClass() only accepts strings, but '
                . (is_object($class) ? get_class($class) : gettype($class))
                . ' given: ' . print_r($class, true)
            );
        }

        $this->listItemCssClass = $class;

        return $this;
    }
public function setListItemCssClass ( $ class ) { if ( ! is_string ( $ class ) ) { throw new \ InvalidArgumentException ( 'Breadcrumbs::setListItemCssClass() only accepts strings, but ' . ( is_object ( $ class ) ? get_class ( $ class ) : gettype ( $ class ) ) . ' given: ' . print_r ( $ class , true ) ) ; } $ this -> listItemCssClass = $ class ; return $ this ; }
Set the list item CSS class.

This CSS class will be added to all list items.

@param string $class
@return $this
Set the list item CSS class .