| @@ 77-92 (lines=16) @@ | ||
| 74 | /** |
|
| 75 | * @return array of Merchants |
|
| 76 | */ |
|
| 77 | public function getMerchants() : array |
|
| 78 | { |
|
| 79 | if (!$this->checkLogin()) { |
|
| 80 | return 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|null $merchantID |
|
| @@ 78-93 (lines=16) @@ | ||
| 75 | /** |
|
| 76 | * @return array of Merchants |
|
| 77 | */ |
|
| 78 | public function getMerchants(): array |
|
| 79 | { |
|
| 80 | if (!$this->checkLogin()) { |
|
| 81 | return array(); |
|
| 82 | } |
|
| 83 | $arrResult = array(); |
|
| 84 | $merchantList = $this->_network->getMerchantList(); |
|
| 85 | foreach ($merchantList as $merchant) { |
|
| 86 | $Merchant = Merchant::createInstance(); |
|
| 87 | $Merchant->merchant_ID = $merchant['cid']; |
|
| 88 | $Merchant->name = $merchant['name']; |
|
| 89 | $arrResult[] = $Merchant; |
|
| 90 | } |
|
| 91 | ||
| 92 | return $arrResult; |
|
| 93 | } |
|
| 94 | ||
| 95 | /** |
|
| 96 | * @param int|null $merchantID |
|
| @@ 89-104 (lines=16) @@ | ||
| 86 | /** |
|
| 87 | * @return array of Merchants |
|
| 88 | */ |
|
| 89 | public function getMerchants() : array |
|
| 90 | { |
|
| 91 | if (!$this->checkLogin()) { |
|
| 92 | return array(); |
|
| 93 | } |
|
| 94 | $arrResult = array(); |
|
| 95 | $merchantList = $this->_network->getMerchantList(); |
|
| 96 | foreach($merchantList as $merchant) { |
|
| 97 | $Merchant = Merchant::createInstance(); |
|
| 98 | $Merchant->merchant_ID = $merchant['cid']; |
|
| 99 | $Merchant->name = $merchant['name']; |
|
| 100 | $arrResult[] = $Merchant; |
|
| 101 | } |
|
| 102 | ||
| 103 | return $arrResult; |
|
| 104 | } |
|
| 105 | ||
| 106 | /** |
|
| 107 | * @param int|null $merchantID |
|