public function onlyOneTransactionId($actionCounts)
    {
        return (isset($actionCounts['transactionId']) && $actionCounts['transactionId'] == 1
                && (!isset($actionCounts['clientTransactionId'])
                    || isset($actionCounts['clientTransactionId']) && $actionCounts['clientTransactionId'] == 0))
            || (isset($actionCounts['clientTransactionId']) && $actionCounts['clientTransactionId'] == 1
                && (!isset($actionCounts['transactionId'])
                    || isset($actionCounts['transactionId']) && $actionCounts['transactionId'] == 0));
    }
public function onlyOneTransactionId($actionCounts)
    {
        return (isset($actionCounts['transactionId']) && $actionCounts['transactionId'] == 1
                && (!isset($actionCounts['clientTransactionId'])
                    || isset($actionCounts['clientTransactionId']) && $actionCounts['clientTransactionId'] == 0))
            || (isset($actionCounts['clientTransactionId']) && $actionCounts['clientTransactionId'] == 1
                && (!isset($actionCounts['transactionId'])
                    || isset($actionCounts['transactionId']) && $actionCounts['transactionId'] == 0));
    }
public function onlyOneTransactionId ( $ actionCounts ) { return ( isset ( $ actionCounts [ 'transactionId' ] ) && $ actionCounts [ 'transactionId' ] == 1 && ( ! isset ( $ actionCounts [ 'clientTransactionId' ] ) || isset ( $ actionCounts [ 'clientTransactionId' ] ) && $ actionCounts [ 'clientTransactionId' ] == 0 ) ) || ( isset ( $ actionCounts [ 'clientTransactionId' ] ) && $ actionCounts [ 'clientTransactionId' ] == 1 && ( ! isset ( $ actionCounts [ 'transactionId' ] ) || isset ( $ actionCounts [ 'transactionId' ] ) && $ actionCounts [ 'transactionId' ] == 0 ) ) ; }
Ensures there is only one transaction id, and checks that
there is only one transactionId or one clientTransactionId
in use. Both cannot be used.

@param array $actionCounts

@return bool
Ensures there is only one transaction id and checks that there is only one transactionId or one clientTransactionId in use . Both cannot be used .