private function inspectTypes()
{
if (null !== $this->typeNames) {
return;
}
$this->typeNames = array();
$this->interfaceNames = array();
$this->traitNames = array();
foreach ($this->types as $type) {
$this->typeNames[] = $typeName = $type->getName();
if ($type->isInterface()) {
$this->interfaceNames[] = $typeName;
} elseif ($this->isTraitSupported && $type->isTrait()) {
$this->traitNames[] = $typeName;
} else {
$this->parentClassName = $typeName;
}
}
}