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