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

IsMeetingRunningParameters   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setMeetingId() 0 5 1
A __construct() 0 3 1
A getMeetingId() 0 3 1
A getHTTPQuery() 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\Parameters;
22
23
/**
24
 * Class IsMeetingRunningParameters.
25
 */
26
class IsMeetingRunningParameters extends BaseParameters
27
{
28
    /**
29
     * @var string
30
     */
31
    private $meetingId;
32
33
    /**
34
     * IsMeetingRunningParameters constructor.
35
     *
36
     * @param $meetingId
37
     */
38
    public function __construct($meetingId)
39
    {
40
        $this->meetingId = $meetingId;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getMeetingId()
47
    {
48
        return $this->meetingId;
49
    }
50
51
    /**
52
     * @param string $meetingId
53
     *
54
     * @return IsMeetingRunningParameters
55
     */
56
    public function setMeetingId($meetingId)
57
    {
58
        $this->meetingId = $meetingId;
59
60
        return $this;
61
    }
62
63
    /**
64
     * @return string
65
     */
66
    public function getHTTPQuery()
67
    {
68
        return $this->buildHTTPQuery(['meetingID' => $this->meetingId]);
69
    }
70
}
71