| @@ 49-61 (lines=13) @@ | ||
| 46 | * @param RepositoryInterface $customerRepository  | 
                                |
| 47 | * @param FactoryInterface $addressFactory  | 
                                |
| 48 | */  | 
                                |
| 49 | public function __construct(  | 
                                |
| 50 | RepositoryInterface $addressRepository,  | 
                                |
| 51 | RepositoryInterface $countryRepository,  | 
                                |
| 52 | RepositoryInterface $provinceRepository,  | 
                                |
| 53 | RepositoryInterface $customerRepository,  | 
                                |
| 54 | FactoryInterface $addressFactory  | 
                                |
| 55 |     ) { | 
                                |
| 56 | $this->addressRepository = $addressRepository;  | 
                                |
| 57 | $this->countryRepository = $countryRepository;  | 
                                |
| 58 | $this->provinceRepository = $provinceRepository;  | 
                                |
| 59 | $this->addressFactory = $addressFactory;  | 
                                |
| 60 | $this->customerRepository = $customerRepository;  | 
                                |
| 61 | }  | 
                                |
| 62 | ||
| 63 | public function handle(CreateAddress $command): void  | 
                                |
| 64 |     { | 
                                |
| @@ 48-60 (lines=13) @@ | ||
| 45 | * @param RepositoryInterface $shopUserRepository  | 
                                |
| 46 | * @param FactoryInterface $addressFactory  | 
                                |
| 47 | */  | 
                                |
| 48 | public function __construct(  | 
                                |
| 49 | RepositoryInterface $addressRepository,  | 
                                |
| 50 | RepositoryInterface $countryRepository,  | 
                                |
| 51 | RepositoryInterface $provinceRepository,  | 
                                |
| 52 | RepositoryInterface $shopUserRepository,  | 
                                |
| 53 | FactoryInterface $addressFactory  | 
                                |
| 54 |     ) { | 
                                |
| 55 | $this->addressRepository = $addressRepository;  | 
                                |
| 56 | $this->countryRepository = $countryRepository;  | 
                                |
| 57 | $this->provinceRepository = $provinceRepository;  | 
                                |
| 58 | $this->addressFactory = $addressFactory;  | 
                                |
| 59 | $this->shopUserRepository = $shopUserRepository;  | 
                                |
| 60 | }  | 
                                |
| 61 | ||
| 62 | public function handle(UpdateAddress $command): void  | 
                                |
| 63 |     { | 
                                |