mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-06-26 11:13:50 +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);
|
|
}
|