Completed
Pull Request — master (#18)
by Jesus
02:07
created

UpdateRecordingsParameters::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
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 UpdateRecordingsParameters
23
 * @package BigBlueButton\Parameters
24
 */
25
class UpdateRecordingsParameters extends MetaParameters
26
{
27
    /**
28
     * @var string
29
     */
30
    private $recordingId;
31
32
    /**
33
     * UpdateRecordingsParameters constructor.
34
     *
35
     * @param $recordingId
36
     * @param $protect
37
     */
38
    public function __construct($recordingId)
39
    {
40
        $this->recordingId = $recordingId;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getRecordingId()
47
    {
48
        return $this->recordingId;
49
    }
50
51
    /**
52
     * @param  string                     $recordingId
53
     * @return UpdateRecordingsParameters
54
     */
55
    public function setRecordingId($recordingId)
56
    {
57
        $this->recordingId = $recordingId;
58
59
        return $this;
60
    }
61
62
    /**
63
     * @return string
64
     */
65
    public function getHTTPQuery()
66
    {
67
        $queries = [
68
            'recordID'                    => $this->recordingId,
69
        ];
70
71
        $this->buildMeta($queries);
72
73
        return $this->buildHTTPQuery($queries);
74
    }
75
}
76