mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-26 06:19:20 +02:00
Repository is supposed to generate IDs
This commit is contained in:
@@ -4,7 +4,9 @@ namespace DesignPatterns\More\Repository;
|
||||
|
||||
interface Storage
|
||||
{
|
||||
public function persist(array $data): int;
|
||||
public function generateId(): int;
|
||||
|
||||
public function persist(array $data);
|
||||
|
||||
public function retrieve(int $id): array;
|
||||
|
||||
|
Reference in New Issue
Block a user