| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class MeetingInstances |
||
| 15 | { |
||
| 16 | use JsonDeserializableTrait; |
||
| 17 | |||
| 18 | /** @var MeetingInstance[] List of ended meeting instances. */ |
||
| 19 | public $meetings; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * MeetingInstances constructor. |
||
| 23 | */ |
||
| 24 | public function __construct() |
||
| 25 | { |
||
| 26 | $this->meetings = []; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Retrieves a meeting's instances. |
||
| 31 | * |
||
| 32 | * @param int $meetingId |
||
| 33 | * |
||
| 34 | * @throws Exception |
||
| 35 | * |
||
| 36 | * @return MeetingInstances the meeting's instances |
||
| 37 | */ |
||
| 38 | public static function fromMeetingId($meetingId) |
||
| 39 | { |
||
| 40 | return static::fromJson(Client::getInstance()->send('GET', "past_meetings/$meetingId/instances")); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function itemClass($propertyName) |
||
| 52 | } |
||
| 53 | } |
||
| 54 |