CommonMark\CQL::__invoke
PHP function
Edit on GitHub ✎
(cmark >= 1.1.0)
CQL Execution
Description
CommonMark\CQL::__invoke(CommonMark\Node $root, callable $handler)
Shall invoke the current CQL function on the given root, executing the given handler on entry to a CommonMark\Node
Parameters
rootthe root node of a tree
handlershould have the prototype:
handler(CommonMark\Node $root, CommonMark\Node $entering): bool|null- Should
handlerfail to return (void), or returnnull, CQL will continue executing - Should the handler return a truthy value, CQL will continue executing.
- Should the handler return a falsy value, CQL will stop executing
- Should