1 | <?php |
||
11 | final class CustomerProvider implements CustomerProviderInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var CustomerRepositoryInterface |
||
15 | */ |
||
16 | private $customerRepository; |
||
17 | |||
18 | /** |
||
19 | * @var FactoryInterface |
||
20 | */ |
||
21 | private $customerFactory; |
||
22 | |||
23 | public function __construct(CustomerRepositoryInterface $customerRepository, FactoryInterface $customerFactory) |
||
28 | |||
29 | public function provide(string $email): CustomerInterface |
||
43 | } |
||
44 |