| Total Complexity | 7 |
| Total Lines | 84 |
| 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 | * @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) |
||
| 97 | } |
||
| 98 | } |
||
| 99 |