Completed
Push — master ( 90d5d6...f37dd9 )
by Ghazi
01:47
created

HooksDestroyParameters::getHTTPQuery()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
4
 *
5
 * Copyright (c) 2016-2018 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
class HooksDestroyParameters extends BaseParameters
22
{
23
24
    /**
25
     * @var string
26
     */
27
    private $hookId;
28
29
    /**
30
     * HooksDestroyParameters constructor.
31
     *
32
     * @param $hookId
33
     */
34
    public function __construct($hookId)
35
    {
36
        $this->hookId  = $hookId;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getHookId()
43
    {
44
        return $this->hookId;
45
    }
46
47
    /**
48
     * @param  string                 $hookId
49
     * @return HooksDestroyParameters
50
     */
51
    public function setHookId($hookId)
52
    {
53
        $this->hookId = $hookId;
54
55
        return $this;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getHTTPQuery()
62
    {
63
        $queries = [
64
            'hookID' => $this->hookId
65
        ];
66
67
        return $this->buildHTTPQuery($queries);
68
    }
69
}
70