Ingest   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 88
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 8
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 88
ccs 0
cts 32
cp 0
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 4 1
A isDefault() 0 4 1
A setDefault() 0 4 1
A getUrlTemplate() 0 4 1
A setUrlTemplate() 0 4 1
A getAvailability() 0 4 1
A setAvailability() 0 4 1
1
<?php
2
namespace Redbox\Twitch;
3
4
class Ingest
5
{
6
    /**
7
     * @var string
8
     */
9
    protected $name;
10
11
    /**
12
     * @var bool
13
     */
14
    protected $default;
15
16
    /**
17
     * @var string
18
     */
19
    protected $url_template;
20
21
    /**
22
     * @var string
23
     */
24
    protected $availability;
25
26
    /**
27
     * @return string
28
     */
29
    public function getName()
30
    {
31
        return $this->name;
32
    }
33
34
    /**
35
     * @param string $name
36
     */
37
    public function setName($name)
38
    {
39
        $this->name = $name;
40
    }
41
42
    /**
43
     * @return boolean
44
     */
45
    public function isDefault()
46
    {
47
        return $this->default;
48
    }
49
50
    /**
51
     * @param boolean $default
52
     */
53
    public function setDefault($default)
54
    {
55
        $this->default = $default;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getUrlTemplate()
62
    {
63
        return $this->url_template;
64
    }
65
66
    /**
67
     * @param string $url_template
68
     */
69
    public function setUrlTemplate($url_template)
70
    {
71
        $this->url_template = $url_template;
72
    }
73
74
    /**
75
     * @return string
76
     */
77
    public function getAvailability()
78
    {
79
        return $this->availability;
80
    }
81
82
    /**
83
     * @param string $availability
84
     */
85
    public function setAvailability($availability)
86
    {
87
        $this->availability = $availability;
88
    }
89
90
91
}