add set layout api
This commit is contained in:
parent
eb7ac7d261
commit
4222d4c0a2
16 changed files with 487 additions and 6 deletions
|
|
@ -26,6 +26,13 @@ class FakeSetRepository implements SetRepository
|
|||
return $this->copy($set);
|
||||
}
|
||||
|
||||
public function find(int $id): ?Set
|
||||
{
|
||||
$set = $this->sets[$id] ?? null;
|
||||
|
||||
return $set === null ? null : $this->copy($set);
|
||||
}
|
||||
|
||||
public function all(): array
|
||||
{
|
||||
$sets = array_values($this->sets);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue