-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Expand file tree
/
Copy pathCalendarObjectUpdatedEvent.php
More file actions
44 lines (39 loc) · 1.01 KB
/
CalendarObjectUpdatedEvent.php
File metadata and controls
44 lines (39 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Calendar\Events;
/**
* @since 32.0.0
*/
class CalendarObjectUpdatedEvent extends AbstractCalendarObjectEvent {
/**
* @param int $calendarId
* @param array $calendarData
* @param array $shares
* @param array $objectData The object data after the update
* @param array $oldObjectData The object data before the update, in the same
* shape as $objectData (empty when unavailable)
* @since 32.0.0
*/
public function __construct(
int $calendarId,
array $calendarData,
array $shares,
array $objectData,
private array $oldObjectData = [],
) {
parent::__construct($calendarId, $calendarData, $shares, $objectData);
}
/**
* Returns the object data as it was before the update.
*
* @return array
* @since 35.0.0
*/
public function getOldObjectData(): array {
return $this->oldObjectData;
}
}