Item
class Item implements ItemInterface, Stringable
The TOC Item class represents
Methods
string
getTitle()
Get the title of the navigation item
string|null
getLink()
Get the link of the navigation item
ItemEnum
getType()
Get the type of the navigation item
int
getDepth(string|null $indent = ' ', string|null $symbol = '-', int|null $depth = 0, int|null $initialHCount = 0, int|null $initialIndentCount = 0)
Get the depth of the navigation item
string
toHtml()
Get the HTML of the given markdown string
string
__toString()
Implement Stringable
Details
at line 20
protected
__construct(MarkdownString $markdown)
Constructor
at line 29
string
getTitle()
Get the title of the navigation item
at line 51
string|null
getLink()
Get the link of the navigation item
at line 64
ItemEnum
getType()
Get the type of the navigation item
at line 74
int
getDepth(string|null $indent = ' ', string|null $symbol = '-', int|null $depth = 0, int|null $initialHCount = 0, int|null $initialIndentCount = 0)
Get the depth of the navigation item
at line 118
string
toHtml()
Get the HTML of the given markdown string
at line 146
string
__toString()
Implement Stringable
at line 156
static Item
of(string $markdown)
Factory