original_string: 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));
      }
code: 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));
      }
code_tokens: 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 ) ) ; }
docstring: 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
docstring_tokens: Ensures there is only one transaction id and checks that there is only one transactionId or one clientTransactionId in use . Both cannot be used .