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

Track::getKind()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
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-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\Core;
22
23
/**
24
 * Class Track.
25
 */
26
class Track
27
{
28
    /**
29
     * @var string
30
     */
31
    private $href;
32
33
    /**
34
     * @var string
35
     */
36
    private $kind;
37
38
    /**
39
     * @var string
40
     */
41
    private $label;
42
43
    /**
44
     * @var string
45
     */
46
    private $lang;
47
48
    /**
49
     * @var string
50
     */
51
    private $source;
52
53
    public function __construct($track)
54
    {
55
        $this->href   = $track->href;
56
        $this->kind   = $track->kind;
57
        $this->label  = $track->label;
58
        $this->lang   = $track->lang;
59
        $this->source = $track->source;
60
    }
61
62
    public function getHref()
63
    {
64
        return $this->href;
65
    }
66
67
    public function getKind()
68
    {
69
        return $this->kind;
70
    }
71
72
    public function getLabel()
73
    {
74
        return $this->label;
75
    }
76
77
    public function getLang()
78
    {
79
        return $this->lang;
80
    }
81
82
    public function getSource()
83
    {
84
        return $this->source;
85
    }
86
}
87