have no email validator class. It's okay to declare it static in the login class and still make use of it in reset class right?
No, it will violate single responsibility principle. Each class should have responsibility over a single part of functionality, so login class should implement only login logic, and email validator class should only validate emails. You need to create it
Обсуждают сегодня