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

        if ($withRecipient === false) {
            $this->recipientLine1 = '';
            $this->recipientLine2 = '';
            $this->recipientLine3 = '';
            $this->recipientLine4 = '';
        }

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

        if ($withRecipient === false) {
            $this->recipientLine1 = '';
            $this->recipientLine2 = '';
            $this->recipientLine3 = '';
            $this->recipientLine4 = '';
        }

        return $this;
    }
public function setWithRecipient ( $ withRecipient = true ) { $ this -> isBool ( $ withRecipient , 'withRecipient' ) ; $ this -> withRecipient = $ withRecipient ; if ( $ withRecipient === false ) { $ this -> recipientLine1 = '' ; $ this -> recipientLine2 = '' ; $ this -> recipientLine3 = '' ; $ this -> recipientLine4 = '' ; } return $ this ; }
Set if payment slip has a recipient specified

Resets the recipient data when disabling.

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