protected function setEmail($email) { $email = trim($email); if (!$email) { throw new \InvalidArgumentException('email'); } Assertion::email($email); $this->email = strtolower($email); }