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