| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public function __construct( |
||
| 40 | string $accountKeysPath, |
||
| 41 | string $certificatesPath, |
||
| 42 | bool $staging = true, |
||
| 43 | Logger $logger = null |
||
| 44 | ) { |
||
| 45 | $this->connector = new Connector($staging, $logger); |
||
| 46 | |||
| 47 | $authorizationService = new AuthorizationService(); |
||
| 48 | $authorizationService->setConnector($this->connector); |
||
| 49 | |||
| 50 | $keyGenerator = new KeyGenerator(); |
||
| 51 | |||
| 52 | $this->accountService = new AccountService($accountKeysPath); |
||
| 53 | $this->accountService->setKeyGenerator($keyGenerator); |
||
| 54 | |||
| 55 | $this->orderService = new OrderService($authorizationService, $certificatesPath); |
||
| 56 | $this->orderService->setKeyGenerator($keyGenerator); |
||
| 57 | } |
||
| 69 |