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

        if ($withAmount === false) {
            $this->amount = 0.0;
        }

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

        if ($withAmount === false) {
            $this->amount = 0.0;
        }

        return $this;
    }
public function setWithAmount ( $ withAmount = true ) { $ this -> isBool ( $ withAmount , 'withAmount' ) ; $ this -> withAmount = $ withAmount ; if ( $ withAmount === false ) { $ this -> amount = 0.0 ; } return $ this ; }
Set if payment slip has an amount specified

Resets the amount when disabling.

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