method analyzeMethod documentation in bbn\Parsers\Php
Function to take all the information related to the method sought and if it also contains the method of its relative
function(string $meth, $cls)
{
if (is_string($cls)) {
$cls = new \ReflectionClass($cls);
}
$arr = null;
if (
!empty($meth)
&& !empty($cls)
&& $cls->hasMethod($meth)
) {
$f = &$this;
//get method in current class
$arr = $this->_get_method_info($cls->getMethod($meth));
//get method in parent class
$parent = $cls->getParentClass();
while ($parent) {
if ($parent->hasMethod($meth)) {
$arr['parent'] = $this->_get_method_info($parent->getMethod($meth));
}
$parent = $parent->getParentClass();
}
}
return $arr ?: null;
}
Function to take all the information related to the method sought and if it also contains the method of its relative 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.
© 2011-2025
BBN Solutions