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

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.

Details

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