| 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 | ||
|---|---|---|
| 
					
	public
					
					
				 | __construct(string $fileName, Locator $astLocator) | # | 
| 
					
	protected
					
					
				 | createLocatedSource(Identifier $identifier): ?LocatedSource | # | 
| Methods inherited from PHPStan\BetterReflection\SourceLocator\Type\AbstractSourceLocator | 
|---|
| locateIdentifier(), locateIdentifiersByType() |