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