1 | <?php |
||
22 | class LegacyAuthentication implements LegacyAuthenticationInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var PasswordRepositoryInterface |
||
26 | */ |
||
27 | private $passwordRepository; |
||
28 | |||
29 | /** |
||
30 | * @var LegacyEncryptorInterface |
||
31 | */ |
||
32 | private $legacyEncryptor; |
||
33 | |||
34 | /** |
||
35 | * LegacyAuthentication constructor. |
||
36 | * @param PasswordRepositoryInterface $passwordRepository |
||
37 | * @param LegacyEncryptorInterface $legacyEncryptor |
||
38 | */ |
||
39 | public function __construct( |
||
46 | |||
47 | /** |
||
48 | * @param int $customerId |
||
49 | * @param string $password |
||
50 | * @return bool |
||
51 | */ |
||
52 | public function canLegacyAuthenticate(int $customerId, string $password): bool |
||
62 | } |
||
63 |