Passed
Push — master ( e28b96...22385b )
by Ghazi
01:51
created

GetMeetingInfoParameters::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
5
 *
6
 * Copyright (c) 2016-2023 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 GetMeetingInfoParameters.
25
 */
26
class GetMeetingInfoParameters extends BaseParameters
27
{
28
    /**
29
     * @var string
30
     */
31
    private $meetingId;
32
33
    /**
34
     * @var int
35
     */
36
    private $offset;
37
38
    /**
39
     * @var int
40
     */
41
    private $limit;
42
43
    /**
44
     * GetMeetingInfoParameters constructor.
45
     *
46
     * @param mixed $meetingId
47
     */
48
    public function __construct($meetingId)
49
    {
50
        $this->meetingId = $meetingId;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getMeetingId()
57
    {
58
        return $this->meetingId;
59
    }
60
61
    /**
62
     * @param string $meetingId
63
     *
64
     * @return GetMeetingInfoParameters
65
     */
66
    public function setMeetingId($meetingId)
67
    {
68
        $this->meetingId = $meetingId;
69
70
        return $this;
71
    }
72
73
    public function getOffset(): int
74
    {
75
        return $this->offset;
76
    }
77
78
    public function setOffset(int $offset): GetMeetingInfoParameters
79
    {
80
        $this->offset = $offset;
81
82
        return $this;
83
    }
84
85
    public function getLimit(): int
86
    {
87
        return $this->limit;
88
    }
89
90
    public function setLimit(int $limit): GetMeetingInfoParameters
91
    {
92
        $this->limit = $limit;
93
94
        return $this;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getHTTPQuery()
101
    {
102
        return $this->buildHTTPQuery(
103
            [
104
                'meetingID' => $this->meetingId,
105
                'offset'    => $this->offset,
106
                'limit'     => $this->limit,
107
            ]
108
        );
109
    }
110
}
111