DocComment
MMO\doc\helpers · 1 symbol · generated 30 Sep 2026
DocComment
DocComment.php:7- Namespace
MMO\doc\helpers- Implements
- iArray, Stringable
- Uses traits
- tArray
Index
| content | ||
| texts | ||
| add($text) | ||
| addText($text) | ||
| clear() | Empty the underlying content, keeping the object itself. | |
| count() | \Countable::count | |
| Description($text, $includeSummary) static | ||
| getDescription($includeSummary) | ||
| getIterator() | \IteratorAggregate::getIterator | |
| getParam($name) | ||
| getSummary() | ||
| getTexts() | ||
| isEmpty() | ||
| jsonSerialize() | \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() | ||
| loadArray($data) | Load 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) | \ArrayAccess::offsetExists | |
| offsetGet($key) | \ArrayAccess::offsetGet | |
| offsetSet($key, $value) | \ArrayAccess::offsetSet -- a null $key appends ($bag[] = $value), like a plain PHP array. | |
| offsetUnset($key) | \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 … | |
| parseInlineTags($text) | ||
| render($opts) | ||
| Summary($text) static | ||
| toArray() | Convert the content to a plain array, recursively converting any nested iArray value (e.g. | |
| __construct($text) | ||
| __toString() |
Properties2
content
texts
- Type
- array
Methods24
add($text)
DocComment.php:33addText($text)
DocComment.php:98clear()
tArray.php:25Empty the underlying content, keeping the object itself.
| returns |
count()
tArray.php:90\Countable::count
| returns | int |
Description($text, $includeSummary)
staticDocComment.php:27getDescription($includeSummary)
DocComment.php:71getIterator()
tArray.php:97\IteratorAggregate::getIterator
| returns | Traversable |
getParam($name)
DocComment.php:16getSummary()
DocComment.php:67getTexts()
DocComment.php:63| returns | array |
isEmpty()
tArray.php:33| returns | true if the underlying content has no elements |
jsonSerialize()
tArray.php:43\JsonSerializable::jsonSerialize -- the raw content is returned as-is (not recursively converted), so json_encode() relies on any nested iArray values being JsonSerializable themselves.
| returns | mixed |
keys()
tArray.php:82| returns | array | the list of keys currently set |
loadArray($data)
tArray.php:71Load every entry of a plain array into the content, through offsetSet (so any offsetSet() override defined by the class using this trait, e.g. for validation or type coercion, is honored for every entry).
offsetExists($key)
tArray.php:130\ArrayAccess::offsetExists
offsetGet($key)
tArray.php:115\ArrayAccess::offsetGet
offsetSet($key, $value)
tArray.php:122\ArrayAccess::offsetSet -- a null $key appends ($bag[] = $value), like a plain PHP array.
offsetUnset($key)
tArray.php:107\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 PHP list; on an associative array, the key is simply removed.
parseInlineTags($text)
DocComment.php:114render($opts)
DocComment.php:84Summary($text)
staticDocComment.php:23toArray()
tArray.php:56Convert the content to a plain array, recursively converting any nested iArray value (e.g. another object using this same trait) into its own plain-array form as well.
| returns | array |
__construct($text)
DocComment.php:12| $text = '' | string |
__toString()
DocComment.php:92| returns | string |