| 1 |
<?php |
| 2 |
|
| 3 |
namespace QuadLayers\WP_Orm\Repository; |
| 4 |
|
| 5 |
use QuadLayers\WP_Orm\Entity\EntityInterface; |
| 6 |
|
| 7 |
interface SingleRepositoryInterface |
| 8 |
{ |
| 9 |
public function find(): ?EntityInterface; |
| 10 |
public function save(EntityInterface $single): bool; |
| 11 |
public function update(array $data): bool; |
| 12 |
public function delete(): bool; |
| 13 |
public function create(array $data): bool; |
| 14 |
public function getTable(): string; |
| 15 |
} |
| 16 |
|