Documentations › mmo.doc › php › models DocSymbol MMO\doc\models · 1 symbol · generated 30 Sep 2026
One top-level documented thing: a php class/interface/trait/enum/function, a javascript class/function/ namespace, or a .jhs custom element/view. Holds its own doc text, its signature, its relations and every member it declares.
class MMO\doc\models\DocSymbol extends MMO\doc\models\DocNode Namespace MMO\doc\modelsExtends DocNode See DocMember one constant, property, method, attribute, slot or css hookConstants10 const KIND_CLASS = 'class' const KIND_CONSTANT = 'constant' const KIND_ELEMENT = 'element' const KIND_ENUM = 'enum' const KIND_FUNCTION = 'function' const KIND_INTERFACE = 'interface' const KIND_MIXIN = 'mixin' const KIND_NAMESPACE = 'namespace' const KIND_TRAIT = 'trait' const KIND_VIEW = 'view' Methods7 protected function defaults(): array function is(string $modifier): bool function isSingle(): bool returns bool true when the symbol has no member at all (a bare function, a marker interface).
function members(): array function membersOfKind(string $kind, ?bool $inherited = null): array function params(): array returns array the parameters of a function symbol.
function sections(?bool $inherited = null): array Inherited members (21) Methods Declared by Description add($key, $node)DocNode Append a child node under $key. clear()DocNode Empty the underlying content, keeping the object itself. compact()DocNode Drop every key whose value is null, '' or [] -- keeps the generated json readable and small. count()DocNode \Countable::count Flatten($value)DocNode get($key, $default)DocNode Read a key, without the "undefined array key" notice $node['missing'] would raise (tArray::offsetGet returns by reference, so it cannot null-coalesce on its own). getIterator()DocNode \IteratorAggregate::getIterator isEmpty()DocNode jsonSerialize()DocNode keys()DocNode loadArray($data)DocNode 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. nodes($key, $class)DocNode Read a key as a list of child nodes, rebuilding each one into $class if it is still a plain array (which is what it is right after json_decode). offsetExists($key)DocNode \ArrayAccess::offsetExists offsetGet($key)DocNode \ArrayAccess::offsetGet offsetSet($key, $value)DocNode Store a value, dropping whatever nodes had already rebuilt for that key. offsetUnset($key)DocNode \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 … storeValue($key, $value)DocNode \ArrayAccess::offsetSet -- a null $key appends ($bag[] = $value), like a plain PHP array. toArray()DocNode Recursively convert to plain arrays. __construct($data)DocNode