AbstractTag
namespace |
bhenk\doc2rst\tag |
predicates |
Abstract |
implements |
|
known subclasses |
AbstractLinkTag | AbstractSimpleTag | ApiTag | AuthorTag | PackageTag |
Abstract base class for tags
Constants
AbstractTag::TAG
predicates |
public |
string(12) "@name_of_tag"
Constructor
AbstractTag::__construct
predicates |
public | constructor |
Construct a new Tag
The $tag_string should include the at-symbol @, tag name and possibly curly braces.
The string should follow the syntax of the specific Tag being constructed.
public function __construct(
Parameter #0 [ <optional> ?string $tag_string = '' ]
)
Methods
AbstractTag::render
predicates |
protected | abstract |
Render the $tag_string
Upon this command subclasses should parse the $tag_string.
protected abstract function render(): void
AbstractTag::getLine
predicates |
public |
Get the content of the $tag_string without the tag name and curly braces
public function getLine(): string
AbstractTag::getTagName
predicates |
public | abstract |
implements |
@inheritdoc
Gets the tag-name of this Tag
@inheritdoc from method TagInterface::getTagName
public abstract function getTagName(): string
AbstractTag::getDisplayName
predicates |
public |
implements |
@inheritdoc
Get the short version of this tagname, without the at-sign (@)
@inheritdoc from method TagInterface::getDisplayName
public function getDisplayName(): string
AbstractTag::isInline
predicates |
public |
implements |
@inheritdoc
Is this an inline tag
Is this an inline tag (with curly braces) or does this tag appear at the start of a line.
@inheritdoc from method TagInterface::isInline
public function isInline(): bool
AbstractTag::getTagLength
predicates |
public |
implements |
@inheritdoc
Get the length (in characters) of this tagname
@inheritdoc from method TagInterface::getTagLength
public function getTagLength(): int
AbstractTag::getGroupWidth
predicates |
public |
implements |
@inheritdoc
Get the width (in characters) of the group in which this Tag will be displayed
@inheritdoc from method TagInterface::getGroupWidth
public function getGroupWidth(): int
AbstractTag::setGroupWidth
predicates |
public |
implements |
@inheritdoc
Set the width (in characters) of the group in which this Tag will be displayed
@inheritdoc from method TagInterface::setGroupWidth
public function setGroupWidth(
Parameter #0 [ <required> int $max_width ]
): void
AbstractTag::toRst
predicates |
public |
implements |
@inheritdoc
Express this Tag in reStructuredText
@inheritdoc from method TagInterface::toRst
public function toRst(): string
AbstractTag::__toString
predicates |
public | abstract |
public abstract function __toString(): string
Fri, 31 Mar 2023 13:22:46 +0000