interface ParsedDataStorageManager implements StubDataQueryInterface, ParsedDataWriter, ParsedDataPersistence (View source)

The full parsed-data store: queryable, writable, persistable, plus access to its internals.

This composes four concerns rather than declaring 22 methods itself, so that each consumer can name the one it actually needs:

  • {\StubTests\Framework\Storage\StubDataQueryInterface} — reading entities (what validators get)
  • {\StubTests\Framework\Storage\ParsedDataWriter} — adding entities and processing them (what the parsers get)
  • {\StubTests\Framework\Storage\ParsedDataPersistence} — save()/load() (only the cache-generation paths)
  • the accessors below — the backing provider and the pipeline, for wiring and tests

The composite still exists because DefaultParsedDataStorageManager is all four things, and the cache-generation scripts legitimately use all four in sequence: build, process, save. What changed is that nothing else has to accept all four — Runner::getStubs() and getReflection() now return the read interface, so a validator holding one cannot call save() or load() on the committed cache.

Methods

array
getClasses()

No description

bool
hasClass(string $id)

No description

array
getFunctions()

No description

array
getInterfaces()

No description

bool
hasInterface(string $id)

No description

array
getEnums()

No description

bool
hasEnum(string $id)

No description

array
getConstants()

No description

void
addClass(PHPClass $entity)

No description

void
addFunction(PHPFunction $entity)

No description

void
addInterface(PHPInterface $entity)

No description

void
addEnum(PHPEnum $entity)

No description

void
addConstant(PHPConstant $entity)

No description

void
addEntity(mixed $entity)

Generic add that auto-detects the entity type.

void
addEntityRaw(mixed $entity)

Deferred write — stored raw, processed later by process().

void
process()

Run any deferred raw entities through the pipeline.

void
save()

No description

void
load()

No description

iterable
getAllEntities()

No description

Details

array getClasses()

No description

Return Value

array

bool hasClass(string $id)

No description

Parameters

string $id

Return Value

bool

array getFunctions()

No description

Return Value

array

array getInterfaces()

No description

Return Value

array

bool hasInterface(string $id)

No description

Parameters

string $id

Return Value

bool

array getEnums()

No description

Return Value

array

bool hasEnum(string $id)

No description

Parameters

string $id

Return Value

bool

array getConstants()

No description

Return Value

array

void addClass(PHPClass $entity)

No description

Parameters

PHPClass $entity

Return Value

void

void addFunction(PHPFunction $entity)

No description

Parameters

PHPFunction $entity

Return Value

void

void addInterface(PHPInterface $entity)

No description

Parameters

PHPInterface $entity

Return Value

void

void addEnum(PHPEnum $entity)

No description

Parameters

PHPEnum $entity

Return Value

void

void addConstant(PHPConstant $entity)

No description

Parameters

PHPConstant $entity

Return Value

void

void addEntity(mixed $entity)

Generic add that auto-detects the entity type.

Parameters

mixed $entity

Return Value

void

void addEntityRaw(mixed $entity)

Deferred write — stored raw, processed later by process().

Parameters

mixed $entity

Return Value

void

void process()

Run any deferred raw entities through the pipeline.

Return Value

void

void save()

No description

Return Value

void

void load()

No description

Return Value

void

ParsedDataStorageProvider getParsedDataStorageProvider()

No description

iterable getAllEntities()

No description

Return Value

iterable

EntityProcessingPipeline getPipeline()

No description