public importAncestorClasses ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
return | null |
public function importAncestorClasses(CodeBase $code_base)
{
if (!$this->isFirstExecution(__METHOD__)) {
return;
}
foreach ($this->getNonParentAncestorFQSENList($code_base) as $fqsen) {
if (!$code_base->hasClassWithFQSEN($fqsen)) {
continue;
}
$ancestor = $code_base->getClassByFQSEN($fqsen);
$this->importAncestorClass($code_base, $ancestor, new None());
}
// Copy information from the parent(s)
$this->importParentClass($code_base);
}