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

        if ($define_preferences === true) {
            $this->setScope(self::DEFINE_PREFERENCES);
        }

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

        if ($define_preferences === true) {
            $this->setScope(self::DEFINE_PREFERENCES);
        }

        return $this;
    }
public function setDefinePreferences ( $ define_preferences ) { if ( ! is_bool ( $ define_preferences ) ) { throw new InvalidArgumentException ( '$define_preferences deve ser boolean, foi passado ' . gettype ( $ define_preferences ) ) ; } if ( $ define_preferences === true ) { $ this -> setScope ( self :: DEFINE_PREFERENCES ) ; } return $ this ; }
Permission to create, change, and delete notification preferences through the PREFERENCES endpoint.

@param bool $define_preferences

@throws \Moip\Exceptions\InvalidArgumentException

@return $this
Permission to create change and delete notification preferences through the PREFERENCES endpoint .