| @@ 74-86 (lines=13) @@ | ||
| 71 | /** |
|
| 72 | * @return array of Merchants |
|
| 73 | */ |
|
| 74 | public function getMerchants() : array |
|
| 75 | { |
|
| 76 | $arrResult = array(); |
|
| 77 | $merchantList = $this->_network->getMerchantList(); |
|
| 78 | foreach($merchantList as $merchant) { |
|
| 79 | $Merchant = Merchant::createInstance(); |
|
| 80 | $Merchant->merchant_ID = $merchant['cid']; |
|
| 81 | $Merchant->name = $merchant['name']; |
|
| 82 | $arrResult[] = $Merchant; |
|
| 83 | } |
|
| 84 | ||
| 85 | return $arrResult; |
|
| 86 | } |
|
| 87 | ||
| 88 | /** |
|
| 89 | * @param int $merchantID |
|
| @@ 104-120 (lines=17) @@ | ||
| 101 | /** |
|
| 102 | * @return array of Merchants |
|
| 103 | */ |
|
| 104 | public function getMerchants() : array |
|
| 105 | { |
|
| 106 | if (!$this->checkLogin()) { |
|
| 107 | return array(); |
|
| 108 | } |
|
| 109 | $arrResult = array(); |
|
| 110 | ||
| 111 | $merchantList = $this->_network->getMerchantList(); |
|
| 112 | foreach($merchantList as $merchant) { |
|
| 113 | $Merchant = Merchant::createInstance(); |
|
| 114 | $Merchant->merchant_ID = $merchant['id']; |
|
| 115 | $Merchant->name = $merchant['name']; |
|
| 116 | $arrResult[] = $Merchant; |
|
| 117 | } |
|
| 118 | ||
| 119 | return $arrResult; |
|
| 120 | } |
|
| 121 | ||
| 122 | /** |
|
| 123 | * @param int $merchantID |
|
| @@ 86-101 (lines=16) @@ | ||
| 83 | /** |
|
| 84 | * @return array of Merchants |
|
| 85 | */ |
|
| 86 | public function getMerchants() : array |
|
| 87 | { |
|
| 88 | if (!$this->checkLogin()) { |
|
| 89 | return array(); |
|
| 90 | } |
|
| 91 | $arrResult = array(); |
|
| 92 | $merchantList = $this->_network->getMerchantList(); |
|
| 93 | foreach($merchantList as $merchant) { |
|
| 94 | $Merchant = Merchant::createInstance(); |
|
| 95 | $Merchant->merchant_ID = $merchant['cid']; |
|
| 96 | $Merchant->name = $merchant['name']; |
|
| 97 | $arrResult[] = $Merchant; |
|
| 98 | } |
|
| 99 | ||
| 100 | return $arrResult; |
|
| 101 | } |
|
| 102 | ||
| 103 | /** |
|
| 104 | * @param int|null $merchantID |
|
| @@ 80-92 (lines=13) @@ | ||
| 77 | /** |
|
| 78 | * @return array of Merchants |
|
| 79 | */ |
|
| 80 | public function getMerchants() : array |
|
| 81 | { |
|
| 82 | $arrResult = array(); |
|
| 83 | $merchantList = $this->_network->getMerchantList(); |
|
| 84 | foreach($merchantList as $merchant) { |
|
| 85 | $Merchant = Merchant::createInstance(); |
|
| 86 | $Merchant->merchant_ID = $merchant['cid']; |
|
| 87 | $Merchant->name = $merchant['name']; |
|
| 88 | $arrResult[] = $Merchant; |
|
| 89 | } |
|
| 90 | ||
| 91 | return $arrResult; |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * @param int $merchantID |
|
| @@ 80-95 (lines=16) @@ | ||
| 77 | /** |
|
| 78 | * @return array of Merchants |
|
| 79 | */ |
|
| 80 | public function getMerchants(): array |
|
| 81 | { |
|
| 82 | if (!$this->checkLogin()) { |
|
| 83 | return array(); |
|
| 84 | } |
|
| 85 | $arrResult = array(); |
|
| 86 | $merchantList = $this->_network->getMerchantList(); |
|
| 87 | foreach ($merchantList as $merchant) { |
|
| 88 | $Merchant = Merchant::createInstance(); |
|
| 89 | $Merchant->merchant_ID = $merchant['cid']; |
|
| 90 | $Merchant->name = $merchant['name']; |
|
| 91 | $arrResult[] = $Merchant; |
|
| 92 | } |
|
| 93 | ||
| 94 | return $arrResult; |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * @param int|null $merchantID |
|