1: <?php
2: declare(strict_types=1);
3:
4: namespace om\ICal\Timezone;
5:
6: use om\ICal\Component;
7:
8: /**
9: * Maps a TZID to a PHP timezone.
10: */
11: interface TimezoneResolver {
12: /**
13: * @param Component $calendar the VCALENDAR component containing the TZID (and its VTIMEZONE definitions)
14: */
15: public function resolve(string $tzid, Component $calendar): ?ResolvedTimezone;
16: }
17: