Completed
Push — master ( 273074...8cf231 )
by Ghazi
02:28
created

GetRecordingsParameters::getMeta()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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