lib/mail/MailSettings.php
public function setBccSettings($enable, $email = null)
    {
        if ($enable instanceof BccSettings) {
            $bcc = $enable;
            $this->bcc = $bcc;
            return;
        }
        if (!is_bool($enable)) {
            throw new TypeException(
                '$enable must be an instance of SendGrid\Mail\BccSettings or of type bool.'
            );
        }
        $this->bcc = new BccSettings($enable, $email);
    }
public function setBccSettings($enable, $email = null)
    {
        if ($enable instanceof BccSettings) {
            $bcc = $enable;
            $this->bcc = $bcc;
            return;
        }
        if (!is_bool($enable)) {
            throw new TypeException(
                '$enable must be an instance of SendGrid\Mail\BccSettings or of type bool.'
            );
        }
        $this->bcc = new BccSettings($enable, $email);
    }
public function setBccSettings ( $ enable , $ email = null ) { if ( $ enable instanceof BccSettings ) { $ bcc = $ enable ; $ this -> bcc = $ bcc ; return ; } if ( ! is_bool ( $ enable ) ) { throw new TypeException ( '$enable must be an instance of SendGrid\Mail\BccSettings or of type bool.' ) ; } $ this -> bcc = new BccSettings ( $ enable , $ email ) ; }
Set the bcc settings on a MailSettings object

@param BccSettings|bool $enable The BccSettings object or an indication
if the setting is enabled
@param string|null $email The email address that you would like
to receive the BCC

@throws TypeException
Set the bcc settings on a MailSettings object