lib/mail/MailSettings.php
public function setBypassListManagement($enable)
    {
        if ($enable instanceof BypassListManagement) {
            $bypass_list_management = $enable;
            $this->bypass_list_management = $bypass_list_management;
            return;
        }
        if (!is_bool($enable)) {
            throw new TypeException(
                '$enable must be an instance of SendGrid\Mail\BypassListManagement or of type bool.'
            );
        }
        $this->bypass_list_management = new BypassListManagement($enable);
        return;
    }
public function setBypassListManagement($enable)
    {
        if ($enable instanceof BypassListManagement) {
            $bypass_list_management = $enable;
            $this->bypass_list_management = $bypass_list_management;
            return;
        }
        if (!is_bool($enable)) {
            throw new TypeException(
                '$enable must be an instance of SendGrid\Mail\BypassListManagement or of type bool.'
            );
        }
        $this->bypass_list_management = new BypassListManagement($enable);
        return;
    }
public function setBypassListManagement ( $ enable ) { if ( $ enable instanceof BypassListManagement ) { $ bypass_list_management = $ enable ; $ this -> bypass_list_management = $ bypass_list_management ; return ; } if ( ! is_bool ( $ enable ) ) { throw new TypeException ( '$enable must be an instance of SendGrid\Mail\BypassListManagement or of type bool.' ) ; } $ this -> bypass_list_management = new BypassListManagement ( $ enable ) ; return ; }
Set bypass list management settings on a MailSettings object

@param BypassListManagement|bool $enable The BypassListManagement
object or an indication
if the setting is enabled

@throws TypeException
Set bypass list management settings on a MailSettings object