src/Genesis/API/Request/WPF/Create.php
protected function checkEmptyRequiredParamsFor(
        $transactionType,
        $customRequiredParam,
        $txnParameters = []
    ) {
        if (CommonUtils::isArrayKeyExists($customRequiredParam, $txnParameters) &&
            !empty($txnParameters[$customRequiredParam])
        ) {
            return;
        }

        foreach ($txnParameters as $parameter) {
            if (CommonUtils::isArrayKeyExists($customRequiredParam, $parameter) &&
                !empty($parameter[$customRequiredParam])
            ) {
                return;
            }
        }

        throw new \Genesis\Exceptions\ErrorParameter(
            sprintf(
                'Empty (null) required parameter: %s for transaction type %s',
                $customRequiredParam,
                $transactionType
            )
        );
    }
protected function checkEmptyRequiredParamsFor(
        $transactionType,
        $customRequiredParam,
        $txnParameters = []
    ) {
        if (CommonUtils::isArrayKeyExists($customRequiredParam, $txnParameters) &&
            !empty($txnParameters[$customRequiredParam])
        ) {
            return;
        }

        foreach ($txnParameters as $parameter) {
            if (CommonUtils::isArrayKeyExists($customRequiredParam, $parameter) &&
                !empty($parameter[$customRequiredParam])
            ) {
                return;
            }
        }

        throw new \Genesis\Exceptions\ErrorParameter(
            sprintf(
                'Empty (null) required parameter: %s for transaction type %s',
                $customRequiredParam,
                $transactionType
            )
        );
    }
protected function checkEmptyRequiredParamsFor ( $ transactionType , $ customRequiredParam , $ txnParameters = [ ] ) { if ( CommonUtils :: isArrayKeyExists ( $ customRequiredParam , $ txnParameters ) && ! empty ( $ txnParameters [ $ customRequiredParam ] ) ) { return ; } foreach ( $ txnParameters as $ parameter ) { if ( CommonUtils :: isArrayKeyExists ( $ customRequiredParam , $ parameter ) && ! empty ( $ parameter [ $ customRequiredParam ] ) ) { return ; } } throw new \ Genesis \ Exceptions \ ErrorParameter ( sprintf ( 'Empty (null) required parameter: %s for transaction type %s' , $ customRequiredParam , $ transactionType ) ) ; }
Performs a check there is an empty required param for the passed transaction type

@param string $transactionType
@param string $customRequiredParam
@param array $txnParameters

@throws \Genesis\Exceptions\ErrorParameter
Performs a check there is an empty required param for the passed transaction type