Completed
Push — master ( 4dc014...648604 )
by Sullivan
02:36
created

DirectPlusResponse::getBearer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Nexy\PayboxDirect\Response;
4
5
/**
6
 * @author Sullivan Senechal <[email protected]>
7
 */
8
final class DirectPlusResponse extends AbstractResponse
9
{
10
    /**
11
     * @var string
12
     */
13
    private $subscriberRef;
14
15
    /**
16
     * @var string|false False if empty.
17
     */
18
    private $bearer;
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function __construct(array $parameters)
24
    {
25
        parent::__construct($parameters);
26
27
        $this->subscriberRef = $this->filteredParameters['REFABONNE'];
28
        $this->bearer = $this->filteredParameters['PORTEUR'];
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getSubscriberRef()
35
    {
36
        return $this->subscriberRef;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getBearer()
43
    {
44
        return $this->bearer;
45
    }
46
}
47