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

        $class = $this->reflectClassLike($className);

        if (false === $class instanceof ReflectionInterface) {
            throw new ClassNotFound(sprintf(
                '"%s" is not an interface, it is a "%s"',
                $className->full(),
                get_class($class)
            ));
        }

        return $class;
    }
public function reflectInterface($className): ReflectionInterface
    {
        $className = ClassName::fromUnknown($className);

        $class = $this->reflectClassLike($className);

        if (false === $class instanceof ReflectionInterface) {
            throw new ClassNotFound(sprintf(
                '"%s" is not an interface, it is a "%s"',
                $className->full(),
                get_class($class)
            ));
        }

        return $class;
    }
public function reflectInterface ( $ className ) : ReflectionInterface { $ className = ClassName :: fromUnknown ( $ className ) ; $ class = $ this -> reflectClassLike ( $ className ) ; if ( false === $ class instanceof ReflectionInterface ) { throw new ClassNotFound ( sprintf ( '"%s" is not an interface, it is a "%s"' , $ className -> full ( ) , get_class ( $ class ) ) ) ; } return $ class ; }
Reflect an interface.

@param ClassName|string $className

@throws ClassNotFound If the class was not found, or the found class
was not a trait.
Reflect an interface .