Response   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 5
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 52
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A isAvailable() 0 4 1
A setAvailable() 0 4 1
A getContentText() 0 4 1
A setContentText() 0 4 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