Passed
Push — master ( 224db0...04cfc9 )
by Thiago
33s
created

Authorization   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 33
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getNumber() 0 4 1
A setNumber() 0 4 1
1
<?php
2
namespace MrPrompt\ShipmentCommon\Base;
3
4
/**
5
 * Authorization
6
 *
7
 * @author Thiago Paes <[email protected]>
8
 */
9
class Authorization
10
{
11
    /**
12
     * @var int
13
     */
14
    private $number;
15
16
    /**
17
     * Constructor
18
     * 
19
     * @param int $number
20
     */
21 3
    public function __construct(int $number = 0)
22
    {
23 3
        $this->number = $number;
24 3
    }
25
26
    /**
27
     * @return int
28
     */
29 1
    public function getNumber(): int
30
    {
31 1
        return $this->number;
32
    }
33
34
    /**
35
     * @param int $number
36
     */
37 1
    public function setNumber(int $number)
38
    {
39 1
        $this->number = $number;
40 1
    }
41
}
42