ParsedDataWriter
interface ParsedDataWriter (View source)
The write side of a parsed-data store: adding entities and running them through the pipeline.
Split out of ParsedDataStorageManager so a producer can declare only what it needs. The two parsers do exactly that — AllStubsParser calls addEntityRaw() then process(), and AllReflectionParser calls addEntity() — and both previously received a 22-method type that also granted them save(), load() and the full read surface.
Unlike the per-entity query interfaces removed in [W5], this one has real client types: see the constructor signatures of AllStubsParser and AllReflectionParser.
Methods
Generic add that auto-detects the entity type.
Deferred write — stored raw, processed later by process().
Run any deferred raw entities through the pipeline.
Details
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.