Phan\Language\Element\Clazz::importAncestorClasses PHP Method

importAncestorClasses() public method

..) to this class
public importAncestorClasses ( CodeBase $code_base ) : null
$code_base Phan\CodeBase 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);
    }