lib/Core/Reflector/CoreReflector.php
public function reflectClassLike($className): ReflectionClassLike
    {
        $className = ClassName::fromUnknown($className);

        $source = $this->sourceLocator->locate($className);
        $classes = $this->reflectClassesIn($source);

        if (false === $classes->has((string) $className)) {
            throw new ClassNotFound(sprintf(
                'Unable to locate class "%s"',
                $className->full()
            ));
        }

        $class = $classes->get((string) $className);

        return $class;
    }
public function reflectClassLike($className): ReflectionClassLike
    {
        $className = ClassName::fromUnknown($className);

        $source = $this->sourceLocator->locate($className);
        $classes = $this->reflectClassesIn($source);

        if (false === $classes->has((string) $className)) {
            throw new ClassNotFound(sprintf(
                'Unable to locate class "%s"',
                $className->full()
            ));
        }

        $class = $classes->get((string) $className);

        return $class;
    }
public function reflectClassLike ( $ className ) : ReflectionClassLike { $ className = ClassName :: fromUnknown ( $ className ) ; $ source = $ this -> sourceLocator -> locate ( $ className ) ; $ classes = $ this -> reflectClassesIn ( $ source ) ; if ( false === $ classes -> has ( ( string ) $ className ) ) { throw new ClassNotFound ( sprintf ( 'Unable to locate class "%s"' , $ className -> full ( ) ) ) ; } $ class = $ classes -> get ( ( string ) $ className ) ; return $ class ; }
Reflect a class, trait or interface by its name.

If the class it not found an exception will be thrown.

@throws ClassNotFound
Reflect a class trait or interface by its name .