InMemoryPhpDocRepository
class InMemoryPhpDocRepository implements PhpDocRepository (View source)
PhpDoc repository with no file behind it, for tests that exercise the serializers' array transform rather than the cache file.
Mirrors {\StubTests\Framework\Storage\PhpDocStorage::setPhpDoc()}'s blank-doc semantics exactly — a null or whitespace-only doc removes the id instead of storing an empty string — because a serializer test that passed against a fake with looser semantics than the real writer would be worse than no test at all.
Kept alongside {\StubTests\Framework\Storage\InMemoryParsedDataStorage} rather than under tests/Unit/, so tests in any namespace can reach it.
Methods
No description
A null or blank doc removes the entry rather than storing an empty one.
Details
string|null
getPhpDoc(string $entityId)
No description
void
setPhpDoc(string $entityId, string|null $phpDoc)
A null or blank doc removes the entry rather than storing an empty one.