Passed
Pull Request — master (#46)
by Ghazi
01:55
created

PutRecordingTextTracksParameters::setKind()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
4
 *
5
 * Copyright (c) 2016-2019 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 PutRecordingTextTracksParameters
23
 * @package BigBlueButton\Parameters
24
 */
25
class PutRecordingTextTracksParameters extends MetaParameters
26
{
27
28
    /**
29
     * @var string
30
     */
31
    private $recordId;
32
33
    /**
34
     * @var string
35
     */
36
    private $kind;
37
38
    /**
39
     * @var string
40
     */
41
    private $lang;
42
43
    /**
44
     * @var string
45
     */
46
    private $label;
47
48
    /**
49
     * PutRecordingTextTracksParameters constructor.
50
     *
51
     * @param $recordId
52
     */
53
    public function __construct($recordId)
54
    {
55
        $this->recordId = $recordId;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getRecordId()
62
    {
63
        return $this->recordId;
64
    }
65
66
    /**
67
     * @param  string                           $recordId
68
     * @return PutRecordingTextTracksParameters
69
     */
70
    public function setRecordId($recordId)
71
    {
72
        $this->recordId = $recordId;
73
74
        return $this;
75
    }
76
77
    /**
78
     * @return string
79
     */
80
    public function getKind()
81
    {
82
        return $this->kind;
83
    }
84
85
    /**
86
     * @param  string                           $kind
87
     * @return PutRecordingTextTracksParameters
88
     */
89
    public function setKind($kind)
90
    {
91
        $this->kind = $kind;
92
93
        return $this;
94
    }
95
96
    /**
97
     * @return string
98
     */
99
    public function getLang()
100
    {
101
        return $this->lang;
102
    }
103
104
    /**
105
     * @param  string                           $lang
106
     * @return PutRecordingTextTracksParameters
107
     */
108
    public function setLang($lang)
109
    {
110
        $this->lang = $lang;
111
112
        return $this;
113
    }
114
115
    /**
116
     * @return string
117
     */
118
    public function getLabel()
119
    {
120
        return $this->label;
121
    }
122
123
    /**
124
     * @param  string                           $label
125
     * @return PutRecordingTextTracksParameters
126
     */
127
    public function setLabel($label)
128
    {
129
        $this->label = $label;
130
131
        return $this;
132
    }
133
134
    /**
135
     * @return string
136
     */
137
    public function getHTTPQuery()
138
    {
139
        $queries = [
140
            'recordID' => $this->recordId,
141
        ];
142
143
        $this->buildMeta($queries);
144
145
        return $this->buildHTTPQuery($queries);
146
    }
147
}
148