registrants = []; } /** * Retrieves all registrant for a meeting. * * @param int $meetingId * * @throws Exception * * @return MeetingRegistrantListItem[] all registrants of the meeting */ public static function loadMeetingRegistrants($meetingId) { return static::loadItems('registrants', "meetings/$meetingId/registrants"); } /** * {@inheritdoc} */ public function itemClass($propertyName) { if ('registrants' === $propertyName) { return MeetingRegistrantListItem::class; } throw new Exception("no such array property $propertyName"); } }