1 | <?php |
||
25 | class AccountManagement |
||
26 | { |
||
27 | /** |
||
28 | * @var PasswordRepositoryInterface |
||
29 | */ |
||
30 | private $passwordRepository; |
||
31 | |||
32 | /** |
||
33 | * @var CustomerRegistry |
||
34 | */ |
||
35 | private $customerRegistry; |
||
36 | |||
37 | /** |
||
38 | * @var LoggerInterface |
||
39 | */ |
||
40 | private $logger; |
||
41 | |||
42 | /** |
||
43 | * PasswordManagement constructor. |
||
44 | * @param PasswordRepositoryInterface $passwordRepository |
||
45 | * @param CustomerRegistry $customerRegistry |
||
46 | * @param LoggerInterface $logger |
||
47 | */ |
||
48 | public function __construct( |
||
57 | |||
58 | |||
59 | /** |
||
60 | * @param MagentoAccountManagement $subject |
||
61 | * @param callable $proceed |
||
62 | * @param $email |
||
63 | * @param $resetToken |
||
64 | * @param $newPassword |
||
65 | * @return bool |
||
66 | */ |
||
67 | public function aroundResetPassword( |
||
82 | |||
83 | |||
84 | /** |
||
85 | * @param string $email |
||
86 | * @return void |
||
87 | */ |
||
88 | private function processRemovingLegacyPassword(string $email) : void |
||
98 | |||
99 | /** |
||
100 | * @param string $email |
||
101 | * @return Customer |
||
102 | * @throws NoSuchEntityException |
||
103 | */ |
||
104 | private function getCustomer(string $email) : Customer |
||
108 | |||
109 | |||
110 | /** |
||
111 | * @param int $customerId |
||
112 | * @return void |
||
113 | */ |
||
114 | private function removeLegacyPasswordIfExists(int $customerId): void |
||
119 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.