1 | <?php |
||
22 | final class CustomerContext implements Context |
||
23 | { |
||
24 | /** |
||
25 | * @var RepositoryInterface |
||
26 | */ |
||
27 | private $customerRepository; |
||
28 | |||
29 | /** |
||
30 | * @var FactoryInterface |
||
31 | */ |
||
32 | private $customerFactory; |
||
33 | |||
34 | /** |
||
35 | * @param RepositoryInterface $customerRepository |
||
36 | * @param FactoryInterface $customerFactory |
||
37 | */ |
||
38 | public function __construct(RepositoryInterface $customerRepository, FactoryInterface $customerFactory) |
||
43 | |||
44 | /** |
||
45 | * @Transform :customer |
||
46 | */ |
||
47 | public function getOrCreateCustomerByEmail($email) |
||
60 | } |
||
61 |