PHP Class BetterReflection\SourceLocator\Type\SingleFileSourceLocator

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)
Inheritance: extends AbstractSourceLocator
Show file Open project: roave/better-reflection Class Usage Examples

Public Methods

Method Description
__construct ( string $filename )

Protected Methods

Method Description
createLocatedSource ( BetterReflection\Identifier\Identifier $identifier ) {@inheritDoc}

Method Details

__construct() public method

public __construct ( string $filename )
$filename string

createLocatedSource() protected method

{@inheritDoc}
protected createLocatedSource ( BetterReflection\Identifier\Identifier $identifier )
$identifier BetterReflection\Identifier\Identifier