protected _getParents ( string $symbol ) : array | ||
$symbol | string | The name of the function/method to find parents for. |
리턴 | array | List of parents |
protected function _getParents($symbol)
{
$parents = array();
$current = $this->_collapsed[$symbol];
foreach ($current['parents'] as $parent) {
if (isset($this->_collapsed[$parent])) {
$parents[] = array('function' => $parent) + $this->_collapsed[$parent];
}
}
return $parents;
}