private static function ClassCollectionLoader::getInterfaces in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/class-loader/ClassCollectionLoader.php \Symfony\Component\ClassLoader\ClassCollectionLoader::getInterfaces()
1 call to ClassCollectionLoader::getInterfaces()
- ClassCollectionLoader::getClassHierarchy in vendor/
symfony/ class-loader/ ClassCollectionLoader.php
File
- vendor/
symfony/ class-loader/ ClassCollectionLoader.php, line 299
Class
- ClassCollectionLoader
- ClassCollectionLoader.
Namespace
Symfony\Component\ClassLoaderCode
private static function getInterfaces(\ReflectionClass $class) {
$classes = array();
foreach ($class
->getInterfaces() as $interface) {
$classes = array_merge($classes, self::getInterfaces($interface));
}
if ($class
->isUserDefined() && $class
->isInterface() && !isset(self::$seen[$class
->getName()])) {
self::$seen[$class
->getName()] = true;
$classes[] = $class;
}
return $classes;
}