Passed
Push — master ( 3ec534...291a58 )
by Ghazi
02:11 queued 12s
created

InsertDocumentParameters::setPassword()   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
/*
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 EndMeetingParameters.
25
 */
26
class InsertDocumentParameters extends BaseParameters
27
{
28
    use DocumentableTrait;
29
30
    /**
31
     * EndMeetingParameters constructor.
32
     *
33
     * @param string $meetingId
34
     */
35
    public function __construct($meetingId)
36
    {
37
        $this->meetingId = $meetingId;
0 ignored issues
show
Bug Best Practice introduced by
The property meetingId does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getMeetingId()
44
    {
45
        return $this->meetingId;
46
    }
47
48
    /**
49
     * @param string $meetingId
50
     *
51
     * @return EndMeetingParameters
52
     */
53
    public function setMeetingId($meetingId)
54
    {
55
        $this->meetingId = $meetingId;
0 ignored issues
show
Bug Best Practice introduced by
The property meetingId does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
56
57
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type BigBlueButton\Parameters\InsertDocumentParameters which is incompatible with the documented return type BigBlueButton\Parameters\EndMeetingParameters.
Loading history...
58
    }
59
60
    /**
61
     * @return string
62
     */
63
    public function getHTTPQuery()
64
    {
65
        return $this->buildHTTPQuery(
66
            [
67
                'meetingID' => $this->meetingId,
68
            ]
69
        );
70
    }
71
}
72