| @@ 74-91 (lines=18) @@ | ||
| 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->url = $merchant['url']; | |
| 86 | $Merchant->status = $merchant['status']; | |
| 87 | $arrResult[] = $Merchant; | |
| 88 | } | |
| 89 | ||
| 90 | return $arrResult; | |
| 91 | } | |
| 92 | ||
| 93 | /** | |
| 94 | * @param int|null $merchantID | |
| @@ 71-88 (lines=18) @@ | ||
| 68 | /** | |
| 69 | * @return array of Merchants | |
| 70 | */ | |
| 71 | public function getMerchants() : array | |
| 72 |     { | |
| 73 |         if (!$this->checkLogin()) { | |
| 74 | return 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 | $Merchant->status = $merchant['status']; | |
| 83 | $Merchant->url = $merchant['url']; | |
| 84 | $arrResult[] = $Merchant; | |
| 85 | } | |
| 86 | ||
| 87 | return $arrResult; | |
| 88 | } | |
| 89 | ||
| 90 | /** | |
| 91 | * @param int $merchantID | |
| @@ 74-87 (lines=14) @@ | ||
| 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 | $Merchant->status = $merchant['status']; | |
| 83 | $Merchant->termination_date = $merchant['termination_date']; | |
| 84 | $arrResult[] = $Merchant; | |
| 85 | } | |
| 86 | return $arrResult; | |
| 87 | } | |
| 88 | ||
| 89 | /** | |
| 90 | * @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 | |
| @@ 81-96 (lines=16) @@ | ||
| 78 | /** | |
| 79 | * @return array of Merchants | |
| 80 | */ | |
| 81 | public function getMerchants() : 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 | // Added more info - 2018-04-23 <PN> | |
| 90 | $Merchant->status = $merchant['status']; | |
| 91 | $Merchant->url = $merchant['url']; | |
| 92 | $arrResult[] = $Merchant; | |
| 93 | } | |
| 94 | ||
| 95 | return $arrResult; | |
| 96 | } | |
| 97 | ||
| 98 | /** | |
| 99 | * @param int $merchantID to filter only one merchant | |
| @@ 82-98 (lines=17) @@ | ||
| 79 | /** | |
| 80 | * @return array of Merchants | |
| 81 | */ | |
| 82 | public function getMerchants() : array | |
| 83 |     { | |
| 84 |         if (!$this->checkLogin()) { | |
| 85 | return array(); | |
| 86 | } | |
| 87 | $arrResult = array(); | |
| 88 | $merchantList = $this->_network->getMerchantList(); | |
| 89 |         foreach($merchantList as $merchant) { | |
| 90 | $Merchant = Merchant::createInstance(); | |
| 91 | $Merchant->merchant_ID = $merchant['cid']; | |
| 92 | $Merchant->name = $merchant['name']; | |
| 93 | $Merchant->url = $merchant['url']; | |
| 94 | $Merchant->status = $merchant['status']; | |
| 95 | $arrResult[] = $Merchant; | |
| 96 | } | |
| 97 | return $arrResult; | |
| 98 | } | |
| 99 | ||
| 100 | /** | |
| 101 | * @param int|null $merchantID | |