setType(DeliveryMethodType::EMAIL); } /** * Возвращает email. * * @return string|null */ public function getEmail(): ?string { return $this->_email; } /** * Устанавливает email. * * @param string|array|null $email * * @return self */ public function setEmail(mixed $email = null): self { $this->_email = $this->validatePropertyValue('_email', $email); return $this; } }