JsonParsedDataStorage
class JsonParsedDataStorage implements ParsedDataPersistentStorageProvider (View source)
JSON storage for parsed entities.
Handles file I/O operations while delegating serialization to a pluggable serializer. Optionally coordinates with PhpDocStorage for separated PhpDoc storage.
Methods
__construct(string $pathToJsonFile, EntitySerializerInterface $serializer, bool $loadExisting = true, PhpDocStorage|null $phpDocStorage = null, bool $ownsPhpDocStorage = true)
No description
array
getEntities()
No description
void
addEntity(mixed $entity)
No description
void
clearEntities()
No description
void
save()
Save entities to persistent storage
void
load()
Load entities from persistent storage
Details
__construct(string $pathToJsonFile, EntitySerializerInterface $serializer, bool $loadExisting = true, PhpDocStorage|null $phpDocStorage = null, bool $ownsPhpDocStorage = true)
No description
array
getEntities()
No description
void
addEntity(mixed $entity)
No description
void
clearEntities()
No description
void
save()
Save entities to persistent storage
void
load()
Load entities from persistent storage