Total Complexity | 5 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
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) |
||
72 | } |
||
73 | } |
||
74 |