protected function parseTransactionDebitCredit()
    {
        $results = [];
        if (preg_match('/^:61:\d+([CD])\d+/', $this->getCurrentTransactionData(), $results)
            && !empty($results[1])
        ) {
            return $this->sanitizeDebitCredit($results[1]);
        }

        return '';
    }
protected function parseTransactionDebitCredit()
    {
        $results = [];
        if (preg_match('/^:61:\d+([CD])\d+/', $this->getCurrentTransactionData(), $results)
            && !empty($results[1])
        ) {
            return $this->sanitizeDebitCredit($results[1]);
        }

        return '';
    }
protected function parseTransactionDebitCredit ( ) { $ results = [ ] ; if ( preg_match ( '/^:61:\d+([CD])\d+/' , $ this -> getCurrentTransactionData ( ) , $ results ) && ! empty ( $ results [ 1 ] ) ) { return $ this -> sanitizeDebitCredit ( $ results [ 1 ] ) ; } return '' ; }
uses the 61 field to determine debit or credit of the transaction.

@return string
uses the 61 field to determine debit or credit of the transaction .