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

CountryOfOrigin   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCountry() 0 4 1
A getSource() 0 4 1
A init() 0 5 1
1
<?php
2
namespace Loevgaard\AltaPay\Response\Partial\Transaction\CustomerInfo;
3
4
use Loevgaard\AltaPay\Response\Partial\PartialResponse;
5
6
class CountryOfOrigin extends PartialResponse
7
{
8
    /**
9
     * @var string
10
     */
11
    private $country;
12
13
    /**
14
     * @var string
15
     */
16
    private $source;
17
18
    /**
19
     * @return string
20
     */
21
    public function getCountry() : string
22
    {
23
        return $this->country;
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getSource() : string
30
    {
31
        return $this->source;
32
    }
33
34
    protected function init()
35
    {
36
        $this->country = (string)$this->xmlDoc->Country;
37
        $this->source = (string)$this->xmlDoc->Source;
38
    }
39
}
40