class EntityLookupService (View source)

Service for looking up entities by ID with lazy indexing and caching.

Extracted from AbstractClassCheck to enable reuse without inheritance.

Methods

PHPClass|null
findClassById(StubDataQueryInterface $storage, string $entityId)

No description

PHPEnum|null
findEnumById(StubDataQueryInterface $storage, string $entityId)

No description

findInterfaceById(StubDataQueryInterface $storage, string $entityId)

No description

findFunctionById(StubDataQueryInterface $storage, string $entityId)

No description

findConstantById(StubDataQueryInterface $storage, string $entityId)

No description

array|null
findAnyEntityById(StubDataQueryInterface $storage, string $entityId)

Find an entity by ID across all entity collections (class, interface, enum, function).

Details

PHPClass|null findClassById(StubDataQueryInterface $storage, string $entityId)

No description

Parameters

StubDataQueryInterface $storage
string $entityId

Return Value

PHPClass|null

PHPEnum|null findEnumById(StubDataQueryInterface $storage, string $entityId)

No description

Parameters

StubDataQueryInterface $storage
string $entityId

Return Value

PHPEnum|null

PHPInterface|null findInterfaceById(StubDataQueryInterface $storage, string $entityId)

No description

Parameters

StubDataQueryInterface $storage
string $entityId

Return Value

PHPInterface|null

PHPFunction|null findFunctionById(StubDataQueryInterface $storage, string $entityId)

No description

Parameters

StubDataQueryInterface $storage
string $entityId

Return Value

PHPFunction|null

PHPConstant|null findConstantById(StubDataQueryInterface $storage, string $entityId)

No description

Parameters

StubDataQueryInterface $storage
string $entityId

Return Value

PHPConstant|null

array|null findAnyEntityById(StubDataQueryInterface $storage, string $entityId)

Find an entity by ID across all entity collections (class, interface, enum, function).

Parameters

StubDataQueryInterface $storage
string $entityId

Return Value

array|null

Pair [entity, entityType], or null if not found