mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-26 06:19:20 +02:00
introduced Storage interface
This commit is contained in:
12
More/Repository/Storage.php
Normal file
12
More/Repository/Storage.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\More\Repository;
|
||||
|
||||
interface Storage
|
||||
{
|
||||
public function persist(array $data): int;
|
||||
|
||||
public function retrieve(int $id): array;
|
||||
|
||||
public function delete(int $id);
|
||||
}
|
Reference in New Issue
Block a user