public function getParentType()
{
$parentNode = $this->getNode()->getParent();
if ($parentNode instanceof ASTTrait) {
return new TraitNode($parentNode);
}
if ($parentNode instanceof ASTClass) {
return new ClassNode($parentNode);
}
return new InterfaceNode($parentNode);
}