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

Nature   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 4 1
A getNature() 0 4 1
1
<?php
2
namespace Loevgaard\AltaPay\Response\GetTerminals\Terminal;
3
4
use Loevgaard\AltaPay\Response\PartialResponse;
5
6
class Nature extends PartialResponse
7
{
8
    /**
9
     * @var string
10
     */
11
    protected $nature;
12
13
    protected function init()
14
    {
15
        $this->nature = (string)$this->xmlDoc;
16
    }
17
18
    /**
19
     * @return string
20
     */
21
    public function getNature(): string
22
    {
23
        return $this->nature;
24
    }
25
}
26