add set edits
This commit is contained in:
parent
f8e1ef1397
commit
53d4120e83
8 changed files with 245 additions and 0 deletions
|
|
@ -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])) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue