src/Payments/Resources/Payments.php
public function setBoleto(Boleto $boleto)
    {
        $boleto->setContext(Moip::PAYMENT);
        $this->data->fundingInstrument->method = self::METHOD_BOLETO;
        $this->data->fundingInstrument->boleto = $boleto->getData();

        return $this;
    }
public function setBoleto(Boleto $boleto)
    {
        $boleto->setContext(Moip::PAYMENT);
        $this->data->fundingInstrument->method = self::METHOD_BOLETO;
        $this->data->fundingInstrument->boleto = $boleto->getData();

        return $this;
    }
public function setBoleto ( Boleto $ boleto ) { $ boleto -> setContext ( Moip :: PAYMENT ) ; $ this -> data -> fundingInstrument -> method = self :: METHOD_BOLETO ; $ this -> data -> fundingInstrument -> boleto = $ boleto -> getData ( ) ; return $ this ; }
Set boleto payment method

@param  \Softpampa\Moip\Helpers\Boleto  $boleto
@return $this
Set boleto payment method