Response::setAvailable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace HappyHourReminder\Entity;
4
5
/**
6
 * Class Response
7
 *
8
 * @package HappyHourReminder\Entity
9
 */
10
class Response
11
{
12
    /** @var bool */
13
    protected $available;
14
15
    /** @var string */
16
    protected $contentText;
17
18
    /**
19
     * Response constructor.
20
     *
21
     * @param bool $available
22
     * @param string $contentText
23
     */
24
    public function __construct($available, $contentText)
25
    {
26
        $this->available   = $available;
27
        $this->contentText = $contentText;
28
    }
29
30
    /**
31
     * @return boolean
32
     */
33
    public function isAvailable()
34
    {
35
        return $this->available;
36
    }
37
38
    /**
39
     * @param boolean $available
40
     */
41
    public function setAvailable($available)
42
    {
43
        $this->available = $available;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getContentText()
50
    {
51
        return $this->contentText;
52
    }
53
54
    /**
55
     * @param string $contentText
56
     */
57
    public function setContentText($contentText)
58
    {
59
        $this->contentText = $contentText;
60
    }
61
}
62