Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | // ╔════════════════════════════════════════════════════════════╗ |
| 4 | // ║ MIT Licence (#Expat) - https://opensource.org/licenses/MIT ║ |
| 5 | // ║ Copyright 2026 Frederic Poeydomenge <dyno@phexium.com> ║ |
| 6 | // ╚════════════════════════════════════════════════════════════╝ |
| 7 | |
| 8 | declare(strict_types=1); |
| 9 | |
| 10 | namespace AppDemo\Library\Domain; |
| 11 | |
| 12 | use Phexium\Domain\Id\IdInterface; |
| 13 | use Phexium\Domain\Specification\SpecificationInterface; |
| 14 | |
| 15 | interface BookRepository |
| 16 | { |
| 17 | public function findAll(): BooksCollection; |
| 18 | |
| 19 | public function findBy(SpecificationInterface $specification, ?array $orderBy = null, ?int $offset = null, ?int $limit = null): BooksCollection; |
| 20 | |
| 21 | public function findOneBy(SpecificationInterface $specification): ?Book; |
| 22 | |
| 23 | public function findById(IdInterface $id): ?Book; |
| 24 | |
| 25 | public function getById(IdInterface $id): Book; |
| 26 | |
| 27 | public function exists(IdInterface $id): bool; |
| 28 | |
| 29 | public function save(Book $book): void; |
| 30 | |
| 31 | public function delete(Book $book): int; |
| 32 | |
| 33 | public function deleteById(IdInterface $id): int; |
| 34 | } |