mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-22 16:54:13 +01:00
17 lines
269 B
PHP
17 lines
269 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);
|
|
}
|