/home/techb158/immovalet.com/vendor/sendgrid/sendgrid/lib/mail
Edit: /home/techb158/immovalet.com/vendor/sendgrid/sendgrid/lib/mail/BccSettings.php (2515B)
setEnable($enable);
}
if (isset($email)) {
$this->setEmail($email);
}
}
/**
* Update the enable setting on a BccSettings object
*
* @param bool $enable Indicates if this setting is enabled
*
* @throws \SendGrid\Mail\TypeException
*/
public function setEnable($enable)
{
Assert::boolean($enable, 'enable');
$this->enable = $enable;
}
/**
* Retrieve the enable setting on a BccSettings object
*
* @return bool
*/
public function getEnable()
{
return $this->enable;
}
/**
* Add the email setting on a BccSettings object
*
* @param string $email The email address that you would like
* to receive the BCC
*
* @throws \SendGrid\Mail\TypeException
*/
public function setEmail($email)
{
Assert::email($email, 'email');
$this->email = $email;
}
/**
* Retrieve the email setting on a BccSettings object
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Return an array representing a BccSettings object for the Twilio SendGrid API
*
* @return null|array
*/
public function jsonSerialize()
{
return array_filter(
[
'enable' => $this->getEnable(),
'email' => $this->getEmail()
],
static function ($value) {
return $value !== null;
}
) ?: null;
}
}