Completed
Push — master ( 3ee5ff...5084e8 )
by Joachim
12:38
created

PaymentInfo::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Loevgaard\AltaPay\Response\Partial\Transaction;
3
4
use Loevgaard\AltaPay\Response\Partial\PartialResponse;
5
6
class PaymentInfo extends PartialResponse
7
{
8
    /**
9
     * @var string
10
     */
11
    private $name;
12
13
    /**
14
     * @var string
15
     */
16
    private $value;
17
18
    /**
19
     * @return string
20
     */
21
    public function getName() : string
22
    {
23
        return $this->name;
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getValue() : string
30
    {
31
        return $this->value;
32
    }
33
34
    protected function init()
35
    {
36
        $this->name = (string)$this->xmlDoc['name'];
37
        $this->value = (string)$this->xmlDoc;
38
    }
39
}
40