| @@ 47-62 (lines=16) @@ | ||
| 44 | /** |
|
| 45 | * @return array of Merchants |
|
| 46 | */ |
|
| 47 | public function getMerchants() : array |
|
| 48 | { |
|
| 49 | if (!$this->checkLogin()) { |
|
| 50 | return array(); |
|
| 51 | } |
|
| 52 | $arrResult = array(); |
|
| 53 | $merchantList = $this->_network->getMerchantList(); |
|
| 54 | foreach ($merchantList as $merchant) { |
|
| 55 | $Merchant = Merchant::createInstance(); |
|
| 56 | $Merchant->merchant_ID = $merchant['cid']; |
|
| 57 | $Merchant->name = $merchant['name']; |
|
| 58 | $arrResult[] = $Merchant; |
|
| 59 | } |
|
| 60 | ||
| 61 | return $arrResult; |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * @param int $merchantID |
|
| @@ 74-89 (lines=16) @@ | ||
| 71 | /** |
|
| 72 | * @return array of Merchants |
|
| 73 | */ |
|
| 74 | public function getMerchants() : array |
|
| 75 | { |
|
| 76 | if (!$this->checkLogin()) { |
|
| 77 | return array(); |
|
| 78 | } |
|
| 79 | $arrResult = array(); |
|
| 80 | $merchantList = $this->_network->getMerchantList(); |
|
| 81 | foreach($merchantList as $merchant) { |
|
| 82 | $Merchant = Merchant::createInstance(); |
|
| 83 | $Merchant->merchant_ID = $merchant['cid']; |
|
| 84 | $Merchant->name = $merchant['name']; |
|
| 85 | $Merchant->status = $merchant['status']; |
|
| 86 | $arrResult[] = $Merchant; |
|
| 87 | } |
|
| 88 | return $arrResult; |
|
| 89 | } |
|
| 90 | ||
| 91 | /** |
|
| 92 | * @param int|null $merchantID |
|
| @@ 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 |
|
| @@ 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 |
|
| @@ 105-121 (lines=17) @@ | ||
| 102 | /** |
|
| 103 | * @return array of Merchants |
|
| 104 | */ |
|
| 105 | public function getMerchants() : array |
|
| 106 | { |
|
| 107 | if (!$this->checkLogin()) { |
|
| 108 | return array(); |
|
| 109 | } |
|
| 110 | $arrResult = array(); |
|
| 111 | ||
| 112 | $merchantList = $this->_network->getMerchantList(); |
|
| 113 | foreach($merchantList as $merchant) { |
|
| 114 | $Merchant = Merchant::createInstance(); |
|
| 115 | $Merchant->merchant_ID = $merchant['id']; |
|
| 116 | $Merchant->name = $merchant['name']; |
|
| 117 | $arrResult[] = $Merchant; |
|
| 118 | } |
|
| 119 | ||
| 120 | return $arrResult; |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * @param int $merchantID |
|