コード例 #1
0
 /**
  * @param AntiMattr\Twitter\Marketplace\Model\Merchant $merchant
  *
  * @throws AntiMattr\Twitter\Marketplace\Exception\IntegrationException
  */
 private function checkAccountIdAndMerchantId(Merchant $merchant)
 {
     $accountId = $merchant->getAccountId();
     if (!isset($accountId)) {
         $message = 'Merchant requires: accountId.';
         throw new IntegrationException($message);
     }
     $merchantId = $merchant->getId();
     if (!isset($merchantId)) {
         $message = 'Merchant requires: id.';
         throw new IntegrationException($message);
     }
 }