PutRecordingTextTrackParameters::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
dl 0
loc 6
rs 10
c 1
b 0
f 1
cc 1
nc 1
nop 4
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 PutRecordingTextTrackParameters.
25
 */
26
class PutRecordingTextTrackParameters extends BaseParameters
27
{
28
    private ?string $recordId = null;
29
30
    private ?string $kind = null;
31
32
    private ?string $lang = null;
33
34
    private ?string $label = null;
35
36
    /**
37
     * PutRecordingTextTrackParameters constructor.
38
     */
39
    public function __construct(string $recordId = null, string $kind = null, string $lang = null, string $label = null)
40
    {
41
        $this->recordId = $recordId;
42
        $this->kind     = $kind;
43
        $this->lang     = $lang;
44
        $this->label    = $label;
45
    }
46
47
    public function getRecordId(): ?string
48
    {
49
        return $this->recordId;
50
    }
51
52
    public function setRecordId(string $recordId): self
53
    {
54
        $this->recordId = $recordId;
55
56
        return $this;
57
    }
58
59
    public function getKind(): ?string
60
    {
61
        return $this->kind;
62
    }
63
64
    public function setKind(string $kind): self
65
    {
66
        $this->kind = $kind;
67
68
        return $this;
69
    }
70
71
    public function getLang(): ?string
72
    {
73
        return $this->lang;
74
    }
75
76
    public function setLang(string $lang): self
77
    {
78
        $this->lang = $lang;
79
80
        return $this;
81
    }
82
83
    public function getLabel(): ?string
84
    {
85
        return $this->label;
86
    }
87
88
    public function setLabel(string $label): self
89
    {
90
        $this->label = $label;
91
92
        return $this;
93
    }
94
95
    public function getHTTPQuery(): string
96
    {
97
        $queries = [
98
            'recordID' => $this->recordId,
99
            'kind'     => $this->kind,
100
            'lang'     => $this->lang,
101
            'label'    => $this->label,
102
        ];
103
104
        return $this->buildHTTPQuery($queries);
105
    }
106
}
107