Passed
Pull Request — master (#21)
by Cesar
01:35
created

Configuration::getPurchaseCountry()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Pagantis\OrdersApiClient\Model\Order;
4
5
use Pagantis\OrdersApiClient\Model\AbstractModel;
6
use Pagantis\OrdersApiClient\Model\Order\Configuration\Channel;
7
use Pagantis\OrdersApiClient\Model\Order\Configuration\Urls;
8
9
/**
10
 * Class Configuration
11
 * @package Pagantis\OrdersApiClient\Model\Order
12
 */
13
class Configuration extends AbstractModel
14
{
15
    /**
16
     * @var Channel
17
     */
18
    protected $channel;
19
20
    /**
21
     * @var Urls
22
     */
23
    protected $urls;
24
25
    /**
26
     * @var string purchaseCountry valid country for your merchant account: ES,IT,PT,FR
27
     */
28
    protected $purchaseCountry;
29
30
    /**
31
     * Configuration constructor.
32
     */
33
    public function __construct()
34
    {
35
        $this->channel = new Channel();
36
        $this->urls = new Urls();
37
    }
38
39
    /**
40
     * @return Channel
41
     */
42
    public function getChannel()
43
    {
44
        return $this->channel;
45
    }
46
47
    /**
48
     * @return Urls
49
     */
50
    public function getUrls()
51
    {
52
        return $this->urls;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getPurchaseCountry()
59
    {
60
        return $this->purchaseCountry;
61
    }
62
63
    /**
64
     * @param Channel $channel
65
     *
66
     * @return Configuration
67
     */
68
    public function setChannel(Channel $channel)
69
    {
70
        $this->channel = $channel;
71
72
        return $this;
73
    }
74
75
    /**
76
     * @param Urls $urls
77
     *
78
     * @return Configuration
79
     */
80
    public function setUrls(Urls $urls)
81
    {
82
        $this->urls = $urls;
83
84
        return $this;
85
    }
86
87
    /**
88
     * @param string $purchaseCountry
89
     *
90
     * @return Configuration
91
     */
92
    public function setPurchaseCountry($purchaseCountry)
93
    {
94
        $this->purchaseCountry = $purchaseCountry;
95
96
        return $this;
97
    }
98
}
99