Completed
Push — master ( 60f2a3...33fd23 )
by Johnny
02:26
created

FeaturedStream::setScheduled()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
namespace Redbox\Twitch\Entity;
3
4
/**
5
 * Class Stream
6
 * @package Redbox\Twitch\Entity
7
 */
8
class FeaturedStream
9
{
10
    /**
11
     * @var bool
12
     */
13
    protected $sponsored;
14
15
    /**
16
     * @var bool
17
     */
18
    protected $scheduled;
19
20
    /**
21
     * @var bool
22
     */
23
    protected $priority;
24
25
    /**
26
     * @var Stream;
27
     */
28
    protected $stream;
29
30
    /**
31
     * @var string
32
     */
33
    protected $image;
34
35
    /**
36
     * @var string
37
     */
38
    protected $title;
39
40
    /**
41
     * @var string
42
     */
43
    protected $text;
44
45
    /**
46
     * @return boolean
47
     */
48
    public function isSponsored()
49
    {
50
        return $this->sponsored;
51
    }
52
53
    /**
54
     * @param boolean $sponsored
55
     */
56
    public function setSponsored($sponsored)
57
    {
58
        $this->sponsored = $sponsored;
59
    }
60
61
    /**
62
     * @return boolean
63
     */
64
    public function isScheduled()
65
    {
66
        return $this->scheduled;
67
    }
68
69
    /**
70
     * @param boolean $scheduled
71
     */
72
    public function setScheduled($scheduled)
73
    {
74
        $this->scheduled = $scheduled;
75
    }
76
77
    /**
78
     * @return boolean
79
     */
80
    public function isPriority()
81
    {
82
        return $this->priority;
83
    }
84
85
    /**
86
     * @param boolean $priority
87
     */
88
    public function setPriority($priority)
89
    {
90
        $this->priority = $priority;
91
    }
92
93
    /**
94
     * @return Stream
95
     */
96
    public function getStream()
97
    {
98
        return $this->stream;
99
    }
100
101
    /**
102
     * @param Stream $stream
103
     */
104
    public function setStream($stream)
105
    {
106
        $this->stream = $stream;
107
    }
108
109
    /**
110
     * @return string
111
     */
112
    public function getImage()
113
    {
114
        return $this->image;
115
    }
116
117
    /**
118
     * @param string $image
119
     */
120
    public function setImage($image)
121
    {
122
        $this->image = $image;
123
    }
124
125
    /**
126
     * @return string
127
     */
128
    public function getTitle()
129
    {
130
        return $this->title;
131
    }
132
133
    /**
134
     * @param string $title
135
     */
136
    public function setTitle($title)
137
    {
138
        $this->title = $title;
139
    }
140
141
    /**
142
     * @return string
143
     */
144
    public function getText()
145
    {
146
        return $this->text;
147
    }
148
149
    /**
150
     * @param string $text
151
     */
152
    public function setText($text)
153
    {
154
        $this->text = $text;
155
    }
156
}