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

AuthorizationTrait::getAuthorization()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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