f7cloud_client/apps/calendar/lib/Events/BeforeAppointmentBookedEvent.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

39 lines
744 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2022 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Calendar\Events;
use OCA\Calendar\Db\AppointmentConfig;
use OCA\Calendar\Db\Booking;
use OCP\EventDispatcher\Event;
class BeforeAppointmentBookedEvent extends Event {
/** @var Booking */
private $booking;
/** @var AppointmentConfig */
private $config;
public function __construct(Booking $booking, AppointmentConfig $config) {
parent::__construct();
$this->booking = $booking;
$this->config = $config;
}
public function getBooking(): Booking {
return $this->booking;
}
public function getConfig(): AppointmentConfig {
return $this->config;
}
}