| 1 | <?php | ||
| 9 | class GiveBackBookFromReservation | ||
| 10 | { | ||
| 11 | /** @var ReservationRepository */ | ||
| 12 | private $reservations; | ||
| 13 | |||
| 14 | /** | ||
| 15 | * @param ReservationRepository $reservations | ||
| 16 | */ | ||
| 17 | public function __construct(ReservationRepository $reservations) | ||
| 21 | |||
| 22 | /** | ||
| 23 | * @param UuidInterface $reservationId | ||
| 24 | * | ||
| 25 | * @throws CannotGiveBackReservationWhichWasNotGivenAway | ||
| 26 | */ | ||
| 27 | public function giveBack(UuidInterface $reservationId) | ||
| 37 | } | ||
| 38 |