Completed
Push — master ( 6010d7...77725b )
by Joachim
11:10
created

Currency   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 25
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 4 1
A init() 0 4 1
A getCurrency() 0 4 1
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
    public function __toString() : string
14
    {
15
        return (string)$this->currency;
16
    }
17
18
    protected function init()
19
    {
20
        $this->currency = (string)$this->xmlDoc;
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getCurrency(): string
27
    {
28
        return $this->currency;
29
    }
30
}
31