EndMeetingParameters::getPassword()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
5
 *
6
 * Copyright (c) 2016-2024 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 <https://www.gnu.org/licenses/>.
19
 */
20
21
namespace BigBlueButton\Parameters;
22
23
/**
24
 * Class EndMeetingParameters.
25
 */
26
class EndMeetingParameters extends BaseParameters
27
{
28
    private ?string $meetingId = null;
29
30
    /**
31
     * @deprecated
32
     */
33
    private ?string $password = null;
34
35
    public function __construct(string $meetingId = null, string $password = null)
36
    {
37
        $this->password  = $password;
0 ignored issues
show
Deprecated Code introduced by
The property BigBlueButton\Parameters...ngParameters::$password has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

37
        /** @scrutinizer ignore-deprecated */ $this->password  = $password;
Loading history...
38
        $this->meetingId = $meetingId;
39
    }
40
41
    public function getMeetingId(): ?string
42
    {
43
        return $this->meetingId;
44
    }
45
46
    public function setMeetingId(string $meetingId): self
47
    {
48
        $this->meetingId = $meetingId;
49
50
        return $this;
51
    }
52
53
    /**
54
     * @deprecated
55
     */
56
    public function getPassword(): ?string
57
    {
58
        return $this->password;
0 ignored issues
show
Deprecated Code introduced by
The property BigBlueButton\Parameters...ngParameters::$password has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

58
        return /** @scrutinizer ignore-deprecated */ $this->password;
Loading history...
59
    }
60
61
    /**
62
     * @deprecated
63
     */
64
    public function setPassword(string $password): self
65
    {
66
        $this->password = $password;
0 ignored issues
show
Deprecated Code introduced by
The property BigBlueButton\Parameters...ngParameters::$password has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

66
        /** @scrutinizer ignore-deprecated */ $this->password = $password;
Loading history...
67
68
        return $this;
69
    }
70
71
    public function getHTTPQuery(): string
72
    {
73
        return $this->buildHTTPQuery(
74
            [
75
                'meetingID' => $this->meetingId,
76
                'password'  => $this->password,
0 ignored issues
show
Deprecated Code introduced by
The property BigBlueButton\Parameters...ngParameters::$password has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

76
                'password'  => /** @scrutinizer ignore-deprecated */ $this->password,
Loading history...
77
            ]
78
        );
79
    }
80
}
81