Completed
Push — master ( 674c19...7898d5 )
by Tom
03:52
created

SimpleEntityWithIsBoolean::getIsActive()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace DoctrineModuleTest\Stdlib\Hydrator\Asset;
4
5
class SimpleEntityWithIsBoolean
6
{
7
    /**
8
     * @var int
9
     */
10
    protected $id;
11
12
    /**
13
     * @var bool
14
     */
15
    protected $isActive;
16
17
    public function setId($id)
18
    {
19
        $this->id = $id;
20
    }
21
22
    public function getId()
23
    {
24
        return $this->id;
25
    }
26
27
    public function setIsActive($isActive)
28
    {
29
        $this->isActive = (bool) $isActive;
30
    }
31
32
    public function isActive()
33
    {
34
        return $this->isActive;
35
    }
36
37
    public function getIsActive()
38
    {
39
        return $this->isActive();
40
    }
41
}
42