HasStatus   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 31
c 0
b 0
f 0
wmc 3
lcom 1
cbo 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getStatus() 0 4 1
A getStatusValue() 0 4 1
A setStatus() 0 4 1
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