PHP Class BetterReflection\SourceLocator\Type\AbstractSourceLocator

Inheritance: implements BetterReflection\SourceLocator\Type\SourceLocator
Exibir arquivo Open project: roave/better-reflection Class Usage Examples

Public Methods

Method Description
__construct ( Locator $astLocator = null )
locateIdentifier ( BetterReflection\Reflector\Reflector $reflector, BetterReflection\Identifier\Identifier $identifier ) {@inheritDoc}
locateIdentifiersByType ( BetterReflection\Reflector\Reflector $reflector, BetterReflection\Identifier\IdentifierType $identifierType ) {@inheritDoc}

Protected Methods

Method Description
createLocatedSource ( BetterReflection\Identifier\Identifier $identifier ) : BetterReflection\SourceLocator\Located\LocatedSource Children should implement this method and return a LocatedSource object which contains the source and the file from which it was located.

Method Details

__construct() public method

public __construct ( Locator $astLocator = null )
$astLocator BetterReflection\SourceLocator\Ast\Locator

createLocatedSource() abstract protected method

Children should implement this method and return a LocatedSource object which contains the source and the file from which it was located.
abstract protected createLocatedSource ( BetterReflection\Identifier\Identifier $identifier ) : BetterReflection\SourceLocator\Located\LocatedSource
$identifier BetterReflection\Identifier\Identifier
return BetterReflection\SourceLocator\Located\LocatedSource

locateIdentifier() public method

{@inheritDoc}
public locateIdentifier ( BetterReflection\Reflector\Reflector $reflector, BetterReflection\Identifier\Identifier $identifier )
$reflector BetterReflection\Reflector\Reflector
$identifier BetterReflection\Identifier\Identifier

locateIdentifiersByType() final public method

{@inheritDoc}
final public locateIdentifiersByType ( BetterReflection\Reflector\Reflector $reflector, BetterReflection\Identifier\IdentifierType $identifierType )
$reflector BetterReflection\Reflector\Reflector
$identifierType BetterReflection\Identifier\IdentifierType