private function isNativeType(PHPClass $class) { return !$class->getNamespace() && in_array($class->getName(), ['string', 'int', 'float', 'integer', 'boolean', 'array', 'mixed', 'callable']); }