mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
introduced PostId and PostStatus and changed naming from Storage to Persistence
This commit is contained in:
14
More/Repository/Persistence.php
Normal file
14
More/Repository/Persistence.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\More\Repository;
|
||||
|
||||
interface Persistence
|
||||
{
|
||||
public function generateId(): int;
|
||||
|
||||
public function persist(array $data);
|
||||
|
||||
public function retrieve(int $id): array;
|
||||
|
||||
public function delete(int $id);
|
||||
}
|
Reference in New Issue
Block a user