bookingMergeValidation = $bookingMergeValidation; $this->bookingsAreMergeable = $bookingsAreMergeable; } /** * @return bool */ protected function authorized($object): bool { return true; } /** * @param BookingObject $object * @return bool * @throws \App\Classes\Exceptions\RequestValidationException */ protected function validators($object): bool { return $this->bookingMergeValidation->validate($object); } /** * @param BookingMergeObject $object * @return bool * @throws ResourceNotFoundException */ protected function criteria($object): bool { $this->bookingsAreMergeable->execute($object); return true; } }