meetings = []; } /** * Retrieves all meetings of a type. * * @param int $type TYPE_SCHEDULED, TYPE_LIVE or TYPE_UPCOMING * * @throws Exception * * @return MeetingListItem[] all meetings */ public static function loadMeetings($type) { return static::loadItems('meetings', 'users/me/meetings', ['type' => $type]); } /** * {@inheritdoc} */ public function itemClass($propertyName) { if ('meetings' === $propertyName) { return MeetingListItem::class; } throw new Exception("No such array property $propertyName"); } }