Completed
Push — master ( 648604...7ce793 )
by Sullivan
02:29
created

AuthorizationTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setAuthorization() 0 6 1
A getAuthorization() 0 4 1
1
<?php
2
3
namespace Nexy\PayboxDirect\Request;
4
5
/**
6
 * @author Sullivan Senechal <[email protected]>
7
 */
8
trait AuthorizationTrait
9
{
10
    /**
11
     * @var string|null
12
     */
13
    private $authorization = null;
14
15
    /**
16
     * @param string|null $authorization
17
     *
18
     * @return $this
19
     */
20
    final public function setAuthorization($authorization = null)
21
    {
22
        $this->authorization = $authorization;
23
24
        return $this;
25
    }
26
27
    /**
28
     * @return string|null
29
     */
30
    final protected function getAuthorization()
31
    {
32
        return $this->authorization;
33
    }
34
}
35