Class PHPStan\BetterReflection\SourceLocator\Type\SingleFileSourceLocator

extends AbstractSourceLocator

This source locator loads an entire file, specified in the constructor argument.

This is useful for loading a class that does not have a namespace. This is also the class required if you want to use Reflector->getClassesFromFile (which loads all classes from specified file)

Methods
Methods inherited from PHPStan\BetterReflection\SourceLocator\Type\AbstractSourceLocator
locateIdentifier(), locateIdentifiersByType()