mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-28 10:40:17 +02:00
15 lines
268 B
PHP
15 lines
268 B
PHP
<?php declare(strict_types=1);
|
|
|
|
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);
|
|
}
|