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

Configuration   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 59
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setUrls() 0 5 1
A getChannel() 0 3 1
A setChannel() 0 5 1
A __construct() 0 4 1
A getUrls() 0 3 1
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