function Mapper::isUserDefinedClass
Throws
1 call to Mapper::isUserDefinedClass()
- Mapper::stringToCodeUnits in vendor/
sebastian/ code-unit/ src/ Mapper.php
File
-
vendor/
sebastian/ code-unit/ src/ Mapper.php, line 167
Class
Namespace
SebastianBergmann\CodeUnitCode
private function isUserDefinedClass(string $className) : bool {
if (!class_exists($className)) {
return false;
}
try {
return (new ReflectionClass($className))->isUserDefined();
// @codeCoverageIgnoreStart
} catch (\ReflectionException $e) {
throw new ReflectionException($e->getMessage(), $e->getCode(), $e);
}
// @codeCoverageIgnoreEnd
}