Index

DocTag

MMO\doc\helpers · 1 symbol · generated 30 Sep 2026

class

DocTag

DocTag.php:4
class MMO\doc\helpers\DocTag extends MMO\doc\helpers\DocComment
Namespace
MMO\doc\helpers
Extends
DocComment

Properties2

inline

readonly
readonly bool $inline
Type
bool

name

readonly
readonly string $name
Type
string

Methods4

__construct($name, $text, $inline)

DocTag.php:8
function __construct(string $name, string $text = '', bool $inline = false)
$namestring
$text = ''string
$inline = falsebool
Inherited members (22)
PropertiesDeclared byDescription
contentDocComment
textsDocComment
MethodsDeclared byDescription
addText($text)DocComment
clear()DocCommentEmpty the underlying content, keeping the object itself.
count()DocComment\Countable::count
Description($text, $includeSummary)DocComment
getDescription($includeSummary)DocComment
getIterator()DocComment\IteratorAggregate::getIterator
getParam($name)DocComment
getSummary()DocComment
getTexts()DocComment
isEmpty()DocComment
jsonSerialize()DocComment\JsonSerializable::jsonSerialize -- the raw content is returned as-is (not recursively converted), so json_encode() relies on any nested iArray values being JsonSerializable themselves.
keys()DocComment
loadArray($data)DocCommentLoad every entry of a plain array into the content, through offsetSet (so any offsetSet() override defined by the class using this trait, e.g.
offsetExists($key)DocComment\ArrayAccess::offsetExists
offsetGet($key)DocComment\ArrayAccess::offsetGet
offsetSet($key, $value)DocComment\ArrayAccess::offsetSet -- a null $key appends ($bag[] = $value), like a plain PHP array.
offsetUnset($key)DocComment\ArrayAccess::offsetUnset -- on a list (sequential integer keys, as produced by $bag[] = ...), the element is spliced out (closing the gap and reindexing), matching \unset() semantics on a plain …
Summary($text)DocComment
toArray()DocCommentConvert the content to a plain array, recursively converting any nested iArray value (e.g.
__toString()DocComment