src/PaymentSlipData.php
public function setWithBank($withBank = true)
    {
        $this->isBool($withBank, 'withBank');
        $this->withBank = $withBank;

        if ($withBank === false) {
            $this->bankName = '';
            $this->bankCity = '';
        }

        return $this;
    }
public function setWithBank($withBank = true)
    {
        $this->isBool($withBank, 'withBank');
        $this->withBank = $withBank;

        if ($withBank === false) {
            $this->bankName = '';
            $this->bankCity = '';
        }

        return $this;
    }
public function setWithBank ( $ withBank = true ) { $ this -> isBool ( $ withBank , 'withBank' ) ; $ this -> withBank = $ withBank ; if ( $ withBank === false ) { $ this -> bankName = '' ; $ this -> bankCity = '' ; } return $ this ; }
Set if payment slip has a bank specified

Resets the bank data when disabling.

@param bool $withBank True for yes, false for no
@return $this The current instance for a fluent interface.
Set if payment slip has a bank specified