method iparse documentation in bbn\Parsers\Php

Generally analyzes a docBLock returning the information in a structured way

function(string $text) { if ($text) { $docblock = $this->docParser->create($text); $res = [ 'summary' => $docblock->getSummary(), 'tags' => [], 'description' => (string)$docblock->getDescription() ]; $tags = $docblock->getTags(); // Contains \phpDocumentor\Reflection\DocBlock\Description object $res['description_obj'] = $docblock->getDescription(); foreach ($tags as $i => $t) { $desc = $t->getDescription() ?: false; $res['tags'][] = [ 'index' => $i, 'type' => method_exists($t, 'getType') ? $t->getType() : null, 'varname' => method_exists($t, 'getVariableName') ? $t->getVariableName() : null, 'isVariadic' => method_exists($t, 'isVariadic') ? $t->isVariadic() : null, 'name' => $t->getName(), 'desc0' => (string)$desc, 'desc1' => $desc ? $t->getDescription()->getTags() : '', 'desc2' => $desc ? $t->getDescription()->render() : '' ]; } return $res; } return false; }

Generally analyzes a docBLock returning the information in a structured way BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.