protected function createListItem($class, $text)
    {
        $li = new NodeElement();
        $li->openTag('li')
           ->addAttribute('class', $class)
           ->finalize(false);

        if ($text !== null) {
            $li->setText($text);
        }

        return $li->closeTag();
    }
protected function createListItem($class, $text)
    {
        $li = new NodeElement();
        $li->openTag('li')
           ->addAttribute('class', $class)
           ->finalize(false);

        if ($text !== null) {
            $li->setText($text);
        }

        return $li->closeTag();
    }
protected function createListItem ( $ class , $ text ) { $ li = new NodeElement ( ) ; $ li -> openTag ( 'li' ) -> addAttribute ( 'class' , $ class ) -> finalize ( false ) ; if ( $ text !== null ) { $ li -> setText ( $ text ) ; } return $ li -> closeTag ( ) ; }
Creates list item

@param string $class List item class
@param string $text Item inner text
@return string
Creates list item