GetRecordingTextTracksParameters   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 4
eloc 10
dl 0
loc 33
rs 10
c 3
b 1
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getRecordId() 0 3 1
A setRecordId() 0 5 1
A getHTTPQuery() 0 9 1
A __construct() 0 3 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 GetRecordingTextTracksParameters.
25
 */
26
class GetRecordingTextTracksParameters extends MetaParameters
27
{
28
    private ?string $recordId = null;
29
30
    /**
31
     * GetRecordingTextTracksParameters constructor.
32
     */
33
    public function __construct(string $recordId = null)
34
    {
35
        $this->recordId = $recordId;
36
    }
37
38
    public function getRecordId(): ?string
39
    {
40
        return $this->recordId;
41
    }
42
43
    public function setRecordId(string $recordId): self
44
    {
45
        $this->recordId = $recordId;
46
47
        return $this;
48
    }
49
50
    public function getHTTPQuery(): string
51
    {
52
        $queries = [
53
            'recordID' => $this->recordId,
54
        ];
55
56
        $this->buildMeta($queries);
57
58
        return $this->buildHTTPQuery($queries);
59
    }
60
}
61