Skip to content

Latest commit

 

History

History
159 lines (107 loc) · 4.19 KB

AsyncSourceLocator.md

File metadata and controls

159 lines (107 loc) · 4.19 KB

BumbleDocGen / Technical description of the project / Parser / Source locators / AsyncSourceLocator


namespace BumbleDocGen\LanguageHandler\Php\Parser\SourceLocator;

final class AsyncSourceLocator implements \BumbleDocGen\Core\Parser\SourceLocator\SourceLocatorInterface, \BumbleDocGen\LanguageHandler\Php\Parser\SourceLocator\CustomSourceLocatorInterface
Lazy loading classes. Cannot be used for initial parsing of files, only for getting specific documents

Initialization methods:

  1. __construct

Methods:

  1. getFinder
  2. getSourceLocator

Method details:

public function __construct(\BumbleDocGen\Core\Cache\LocalCache\LocalObjectCache $localObjectCache, array $psr4FileMap, array $classMap);

Parameters:

Name Type Description
$localObjectCache \BumbleDocGen\Core\Cache\LocalCache\LocalObjectCache -
$psr4FileMap array -
$classMap array -

public function getFinder(): \Symfony\Component\Finder\Finder|null;

Parameters: not specified

Return value: \Symfony\Component\Finder\Finder | null


public function getSourceLocator(\Roave\BetterReflection\SourceLocator\Ast\Locator $astLocator): \Roave\BetterReflection\SourceLocator\Type\SourceLocator;

Parameters:

Name Type Description
$astLocator \Roave\BetterReflection\SourceLocator\Ast\Locator -

Return value: \Roave\BetterReflection\SourceLocator\Type\SourceLocator