InsertDocumentParameters   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 5
Bugs 2 Features 1
Metric Value
wmc 4
eloc 9
dl 0
loc 28
rs 10
c 5
b 2
f 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getHTTPQuery() 0 5 1
A getMeetingId() 0 3 1
A __construct() 0 3 1
A setMeetingId() 0 5 1
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 InsertDocumentParameters extends BaseParameters
27
{
28
    use DocumentableTrait;
29
30
    private ?string $meetingId = null;
31
32
    public function __construct(string $meetingId = null)
33
    {
34
        $this->meetingId = $meetingId;
35
    }
36
37
    public function getMeetingId(): ?string
38
    {
39
        return $this->meetingId;
40
    }
41
42
    public function setMeetingId(string $meetingId): self
43
    {
44
        $this->meetingId = $meetingId;
45
46
        return $this;
47
    }
48
49
    public function getHTTPQuery(): string
50
    {
51
        return $this->buildHTTPQuery(
52
            [
53
                'meetingID' => $this->meetingId,
54
            ]
55
        );
56
    }
57
}
58