public function isParentTypeOf(IType $type) { if ($type instanceof IObjectType) { return is_a($type->getClassType(), $this->classType, true); } return false; }