add set edits

This commit is contained in:
Yisroel Baum 2026-07-02 17:10:23 +03:00
parent f8e1ef1397
commit 53d4120e83
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
8 changed files with 245 additions and 0 deletions

View file

@ -27,6 +27,19 @@ class FakeSetRepository implements SetRepository
return $set;
}
public function update(DomainSet $set): DomainSet
{
$updatedSet = $this->cloneSet($set);
$this->setsById[$updatedSet->getId()] = $updatedSet;
return $this->cloneSet($updatedSet);
}
public function delete(DomainSet $set): void
{
unset($this->setsById[$set->getId()]);
}
public function find(int $id): ?DomainSet
{
if (! isset($this->setsById[$id])) {