HasStatus::getStatus()   A
last analyzed

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
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Nord\Lumen\Core\Traits;
4
5
use Nord\Lumen\Core\Domain\Status;
6
7
trait HasStatus
8
{
9
    /**
10
     * @var Status
11
     */
12
    private $status;
13
14
    /**
15
     * @return Status
16
     */
17
    public function getStatus()
18
    {
19
        return $this->status;
20
    }
21
22
    /**
23
     * @return int
24
     */
25
    public function getStatusValue()
26
    {
27
        return $this->status->getValue();
28
    }
29
30
    /**
31
     * @param Status $status
32
     */
33
    private function setStatus(Status $status)
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
34
    {
35
        $this->status = $status;
36
    }
37
}
38