SinceTag
namespace |
bhenk\doc2rst\tag |
predicates |
Cloneable | Instantiable |
implements |
|
extends |
|
hierarchy |
SinceTag -> AbstractVersionTag -> AbstractSimpleTag -> AbstractTag |
Represents the since tag
syntax
@since [<"Semantic Version">] [<description>]
see also
Constants
SinceTag::TAG
predicates |
public |
string(6) "@since"
Constructor
SinceTag::__construct
predicates |
public | constructor |
inherited from |
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
SinceTag::getTagName
predicates |
public |
implements |
@inheritdoc
Gets the tag-name of this Tag
@inheritdoc from method TagInterface::getTagName
public function getTagName(): string
SinceTag::render
predicates |
public |
implements |
|
inherited from |
Renders a versioned Tag
syntax
@tag_name [<"Semantic Version">] [<description>]
Renders [<”Semantic Version”>] as is, transforms inline PHPDoc tags in [<description>] to their reStructuredText representation.
@inheritdoc
Render the $tag_string
Upon this command subclasses should parse the $tag_string.
@inheritdoc from method AbstractTag::render
public function render(): void
SinceTag::__toString
predicates |
public |
implements |
|
inherited from |
Returns a reStructuredText representation of the contents of this Tag
public function __toString(): string
SinceTag::getSemanticVersion
predicates |
public |
inherited from |
Get the [<”Semantic Version”>]
public function getSemanticVersion(): ?string
SinceTag::setSemanticVersion
predicates |
public |
inherited from |
Set the [<”Semantic Version”>]
public function setSemanticVersion(
Parameter #0 [ <required> string $semantic_version ]
): void
SinceTag::getDescription
predicates |
public |
inherited from |
Get the <description>
public function getDescription(): ?string
SinceTag::setDescription
predicates |
public |
inherited from |
Set the <description>
public function setDescription(
Parameter #0 [ <required> ?string $description ]
): void
SinceTag::getLine
predicates |
public |
inherited from |
Get the content of the $tag_string without the tag name and curly braces
public function getLine(): string
SinceTag::getDisplayName
predicates |
public |
implements |
|
inherited from |
@inheritdoc
Get the short version of this tagname, without the at-sign (@)
@inheritdoc from method TagInterface::getDisplayName
public function getDisplayName(): string
SinceTag::isInline
predicates |
public |
implements |
|
inherited from |
@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
SinceTag::getTagLength
predicates |
public |
implements |
|
inherited from |
@inheritdoc
Get the length (in characters) of this tagname
@inheritdoc from method TagInterface::getTagLength
public function getTagLength(): int
SinceTag::getGroupWidth
predicates |
public |
implements |
|
inherited from |
@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
SinceTag::setGroupWidth
predicates |
public |
implements |
|
inherited from |
@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
SinceTag::toRst
predicates |
public |
implements |
|
inherited from |
@inheritdoc
Express this Tag in reStructuredText
@inheritdoc from method TagInterface::toRst
public function toRst(): string
Fri, 31 Mar 2023 13:22:46 +0000