Revisions final readonly class
Minn\Content\Revisions · public/minn/src/Minn/Content/Revisions.php · 47 lines
Revision rows read: the plain snapshots and the per-author autosave slots.
Uses 1
Constants and properties
| private | readonly Minn\Db $db | Promoted from the constructor. |
Public
| new | __construct(Minn\Db $db)# | |
| method | revisionsOf(int $parentId): array# | The revisions, or the autosaves, of a post, newest first, as rows. @return list<array> newest first |
| method | allOf(int $parentId): array# | Every revision of a post, its autosaves among them, newest first by date then id, as rows: what the revisions route lists (probe rest-latest-revision). |
| method | one(int $id): ?array# | One revision (or autosave) row by its id, whoever its parent is; null when the id is no revision. |
| method | autosavesOf(int $parentId): array# | The autosaves of a post, newest first, as rows. |
Internals 1
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | named(int $parentId, string $comparison): array# |
Nothing matches.