255 ) { throw new DomainException( 'email.too_long', 'Email address exceeds 255 characters.' ); } $this->value = $value; } /** * To string. * * @since 0.1.0 */ public function to_string(): string { return $this->value; } /** * Equals. * * @param self $other Parameter. * @since 0.1.0 */ public function equals( self $other ): bool { return $this->value === $other->value; } /** * String cast. * * @since 0.1.0 */ public function __toString(): string { return $this->value; } }