Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface UserInterface
- {
- public function getEmail();
- public function setEmail($email);
- public function getPassword();
- public function setPassword($password);
- }
- interface UserServiceInterface
- {
- public function getUserByEmail();
- }
- class PasswordResetService
- {
- public function getUserByEmail($email)
- {
- $user = $this->userService->getUserByEmail($email);
- if ($user) return $user;
- $user = $this->recruiterService->getUserByEmail($email);
- if ($user) return $user;
- // etc ...
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement