Completed
Push — master ( f222c1...bc6c1b )
by Joachim
13:58
created

Currency::init()   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\GetTerminals\Terminal;
3
4
use Loevgaard\AltaPay\Response\PartialResponse;
5
6
class Currency extends PartialResponse
7
{
8
    /**
9
     * @var string
10
     */
11
    protected $currency;
12
13
    protected function init()
14
    {
15
        $this->currency = (string)$this->xmlDoc;
16
    }
17
18
    /**
19
     * @return string
20
     */
21
    public function getCurrency(): string
22
    {
23
        return $this->currency;
24
    }
25
}
26