src/Auth/Connect.php
public function setRefund($refund)
    {
        if (!is_bool($refund)) {
            throw new InvalidArgumentException('$refund deve ser boolean, foi passado '.gettype($refund));
        }

        if ($refund === true) {
            $this->setScope(self::REFUND);
        }

        return $this;
    }
public function setRefund($refund)
    {
        if (!is_bool($refund)) {
            throw new InvalidArgumentException('$refund deve ser boolean, foi passado '.gettype($refund));
        }

        if ($refund === true) {
            $this->setScope(self::REFUND);
        }

        return $this;
    }
public function setRefund ( $ refund ) { if ( ! is_bool ( $ refund ) ) { throw new InvalidArgumentException ( '$refund deve ser boolean, foi passado ' . gettype ( $ refund ) ) ; } if ( $ refund === true ) { $ this -> setScope ( self :: REFUND ) ; } return $ this ; }
Permission to create and consult reimbursements ofORDERS, PAYMENTS.

@param bool $refund

@throws \Moip\Exceptions\InvalidArgumentException

@return \Moip\Auth\Connect $this
Permission to create and consult reimbursements ofORDERS PAYMENTS .