\phpDocumentor\Plugin\Scrybe\Converter\Metadata\TableOfContentsHeading

The Table of Contents File describes a headings and the Files and subentries it may contain.

A Heading may also contain files, those will serve as containers for more headings or other files. This way it is possible to 'include' another File as part of a hierarchy and have a integrated table of contents.

Summary

Methods
Properties
Constants
__construct()
getParent()
setParent()
getChildren()
addChild()
getName()
setName()
setSlug()
getSlug()
getFilename()
No public properties found
No constants found
No protected methods found
$parent
$children
$name
$slug
N/A
No private methods found
No private properties found
N/A

Properties

$parent

$parent : \phpDocumentor\Plugin\Scrybe\Converter\Metadata\TableOfContents\BaseEntry|null

The parent BaseEntry in the containing module.

This property may also contain a null value if this is the top entry in this module. Please note that files are also considered entries.

Please note that a null value is usually reserved to the index file.

Type

\phpDocumentor\Plugin\Scrybe\Converter\Metadata\TableOfContents\BaseEntry|null

$name

$name : string

The heading name, or caption, for this entry.

Type

string

$slug

$slug : string

Type

string — the slug used by the anchor

Methods

getName()

getName() : string

Returns the name for this entry.

Returns

string

setName()

setName(string  $name) : void

Sets the caption for this entry,

Parameters

string $name

setSlug()

setSlug(string  $slug) : void

Sets the anchor slug for this entry.

Parameters

string $slug

getSlug()

getSlug() : string

Retrieves the anchor slug for this entry.

Returns

string

getFilename()

getFilename()