From 4c19dc323a910e091087069718563a647ad4ea9d Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Fri, 10 Feb 2017 11:45:43 +0800 Subject: [PATCH] MDL-57442 core_calendar: Add missing method to times interface Also adds a missing member to event_times implementation. Part of MDL-55611 epic. --- calendar/classes/local/event/value_objects/event_times.php | 5 +++++ calendar/classes/local/interfaces/times_interface.php | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/calendar/classes/local/event/value_objects/event_times.php b/calendar/classes/local/event/value_objects/event_times.php index f864069bb37..2617133ce9f 100644 --- a/calendar/classes/local/event/value_objects/event_times.php +++ b/calendar/classes/local/event/value_objects/event_times.php @@ -50,6 +50,11 @@ class event_times implements times_interface { */ protected $sort; + /** + * @var \DateTimeImmutable $modified Time event was last modified. + */ + protected $modified; + /** * Constructor. * diff --git a/calendar/classes/local/interfaces/times_interface.php b/calendar/classes/local/interfaces/times_interface.php index fdbf937acd6..4d8000c97fb 100644 --- a/calendar/classes/local/interfaces/times_interface.php +++ b/calendar/classes/local/interfaces/times_interface.php @@ -60,4 +60,11 @@ interface times_interface { * @return \DateTimeImmutable */ public function get_sort_time(); + + /** + * Get the modified time. + * + * @return \DateTimeImmutable + */ + public function get_modified_time(); }