ParsedDataStorageManager
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
Deferred write — stored raw, processed later by process().
No description
No description
No description
Details
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
ParsedDataStorageProvider
getParsedDataStorageProvider()
No description
iterable
getAllEntities()
No description
EntityProcessingPipeline
getPipeline()
No description