public function setCommitMsg($commitMsg)
    {
        if ($commitMsg === null) {
            $this->commitMsg    = null;
        } else {
            $this->commitMsg    = (string)$commitMsg;
        }
        return $this;
    }
public function setCommitMsg($commitMsg)
    {
        if ($commitMsg === null) {
            $this->commitMsg    = null;
        } else {
            $this->commitMsg    = (string)$commitMsg;
        }
        return $this;
    }
public function setCommitMsg ( $ commitMsg ) { if ( $ commitMsg === null ) { $ this -> commitMsg = null ; } else { $ this -> commitMsg = ( string ) $ commitMsg ; } return $ this ; }
Sets  the commit message that will be used when committing the transaction

@param   string|null $commitMsg      The commit message
@return  Transaction
Sets the commit message that will be used when committing the transaction