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 | declare(strict_types=1); |
| 4 | |
| 5 | namespace App\Trip\Domain; |
| 6 | |
| 7 | use App\Trip\Domain\ValueObject\OwnerId; |
| 8 | use App\Trip\Domain\ValueObject\TripId; |
| 9 | |
| 10 | interface TripRepository |
| 11 | { |
| 12 | public function save(Trip $trip): void; |
| 13 | |
| 14 | public function remove(Trip $trip): void; |
| 15 | |
| 16 | public function ofId(TripId $id): ?Trip; |
| 17 | |
| 18 | /** @return list<Trip> */ |
| 19 | public function ofOwner(OwnerId $ownerId): array; |
| 20 | } |