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

        if ($withPayer === false) {
            $this->payerLine1 = '';
            $this->payerLine2 = '';
            $this->payerLine3 = '';
            $this->payerLine4 = '';
        }

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

        if ($withPayer === false) {
            $this->payerLine1 = '';
            $this->payerLine2 = '';
            $this->payerLine3 = '';
            $this->payerLine4 = '';
        }

        return $this;
    }
public function setWithPayer ( $ withPayer = true ) { $ this -> isBool ( $ withPayer , 'withPayer' ) ; $ this -> withPayer = $ withPayer ; if ( $ withPayer === false ) { $ this -> payerLine1 = '' ; $ this -> payerLine2 = '' ; $ this -> payerLine3 = '' ; $ this -> payerLine4 = '' ; } return $ this ; }
Set if payment slip has a payer specified

Resets the payer data when disabling.

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