Completed
Push — master ( 90d5d6...f37dd9 )
by Ghazi
01:47
created

HooksCreateParameters   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 99
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 8
lcom 1
cbo 1
dl 0
loc 99
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getCallbackUrl() 0 4 1
A setCallbackUrl() 0 6 1
A getMeetingId() 0 4 1
A setMeetingId() 0 6 1
A getRaw() 0 4 1
A setGetRaw() 0 6 1
A getHTTPQuery() 0 10 1
1
<?php
2
/**
3
 * BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
4
 *
5
 * Copyright (c) 2016-2018 BigBlueButton Inc. and by respective authors (see below).
6
 *
7
 * This program is free software; you can redistribute it and/or modify it under the
8
 * terms of the GNU Lesser General Public License as published by the Free Software
9
 * Foundation; either version 3.0 of the License, or (at your option) any later
10
 * version.
11
 *
12
 * BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
13
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU Lesser General Public License along
17
 * with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
18
 */
19
namespace BigBlueButton\Parameters;
20
21
class HooksCreateParameters extends BaseParameters
22
{
23
24
    /**
25
     * @var string
26
     */
27
    private $callbackUrl;
28
29
    /**
30
     * @var string
31
     */
32
    private $meetingId;
33
34
    /**
35
     * @var string
36
     */
37
    private $getRaw;
38
39
    /**
40
     * HooksCreateParameters constructor.
41
     *
42
     * @param $callbackUrl
43
     */
44
    public function __construct($callbackUrl)
45
    {
46
        $this->callbackUrl = $callbackUrl;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getCallbackUrl()
53
    {
54
        return $this->callbackUrl;
55
    }
56
57
    /**
58
     * @param  string                $callbackUrl
59
     * @return HooksCreateParameters
60
     */
61
    public function setCallbackUrl($callbackUrl)
62
    {
63
        $this->callbackUrl = $callbackUrl;
64
65
        return $this;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getMeetingId()
72
    {
73
        return $this->meetingId;
74
    }
75
76
    /**
77
     * @param  string                $meetingId
78
     * @return HooksCreateParameters
79
     */
80
    public function setMeetingId($meetingId)
81
    {
82
        $this->meetingId = $meetingId;
83
84
        return $this;
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function getRaw()
91
    {
92
        return $this->getRaw;
93
    }
94
95
    /**
96
     * @param  string                $getRaw
97
     * @return HooksCreateParameters
98
     */
99
    public function setGetRaw($getRaw)
100
    {
101
        $this->getRaw = $getRaw;
102
103
        return $this;
104
    }
105
106
    /**
107
     * @return string
108
     */
109
    public function getHTTPQuery()
110
    {
111
        $queries = [
112
            'callbackURL' => $this->callbackUrl,
113
            'meetingID'   => $this->meetingId,
114
            'getRaw'      => $this->getRaw
115
        ];
116
117
        return $this->buildHTTPQuery($queries);
118
    }
119
}
120