Completed
Push — master ( 6e6d73...1dcfbd )
by Cesar
14s queued 11s
created

Configuration::getUrls()   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
     * Configuration constructor.
27
     */
28
    public function __construct()
29
    {
30
        $this->channel = new Channel();
31
        $this->urls = new Urls();
32
    }
33
34
    /**
35
     * @return Channel
36
     */
37
    public function getChannel()
38
    {
39
        return $this->channel;
40
    }
41
42
    /**
43
     * @return Urls
44
     */
45
    public function getUrls()
46
    {
47
        return $this->urls;
48
    }
49
50
    /**
51
     * @param Channel $channel
52
     *
53
     * @return Configuration
54
     */
55
    public function setChannel(Channel $channel)
56
    {
57
        $this->channel = $channel;
58
59
        return $this;
60
    }
61
62
    /**
63
     * @param Urls $urls
64
     *
65
     * @return Configuration
66
     */
67
    public function setUrls(Urls $urls)
68
    {
69
        $this->urls = $urls;
70
71
        return $this;
72
    }
73
}
74