Passed
Pull Request — master (#189)
by Ghazi
10:24
created

JoinMeetingResponse   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
eloc 7
c 1
b 0
f 0
dl 0
loc 48
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getAuthToken() 0 3 1
A getUserId() 0 3 1
A getMeetingId() 0 3 1
A getUrl() 0 3 1
A getGuestStatus() 0 3 1
A getSessionToken() 0 3 1
1
<?php
2
3
/*
4
 * BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
5
 *
6
 * Copyright (c) 2016-2022 BigBlueButton Inc. and by respective authors (see below).
7
 *
8
 * This program is free software; you can redistribute it and/or modify it under the
9
 * terms of the GNU Lesser General Public License as published by the Free Software
10
 * Foundation; either version 3.0 of the License, or (at your option) any later
11
 * version.
12
 *
13
 * BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
14
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15
 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU Lesser General Public License along
18
 * with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
19
 */
20
21
namespace BigBlueButton\Responses;
22
23
/**
24
 * Class JoinMeetingResponse.
25
 */
26
class JoinMeetingResponse extends BaseResponse
27
{
28
    /**
29
     * @return string
30
     */
31
    public function getMeetingId()
32
    {
33
        return $this->rawXml->meeting_id->__toString();
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getUserId()
40
    {
41
        return $this->rawXml->user_id->__toString();
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getAuthToken()
48
    {
49
        return $this->rawXml->auth_token->__toString();
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getSessionToken()
56
    {
57
        return $this->rawXml->session_token->__toString();
58
    }
59
60
    /**
61
     * @return string
62
     */
63
    public function getGuestStatus()
64
    {
65
        return $this->rawXml->guestStatus->__toString();
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getUrl()
72
    {
73
        return $this->rawXml->url->__toString();
74
    }
75
}
76