| Total Complexity | 4 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class HyperwalletService |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var UserService |
||
| 17 | */ |
||
| 18 | protected $userService; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var PaymentService |
||
| 22 | */ |
||
| 23 | protected $paymentService; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var TransferService |
||
| 27 | */ |
||
| 28 | protected $transferService; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * HyperWalletService constructor. |
||
| 32 | * @param UserService $userService |
||
| 33 | * @param PaymentService $paymentService |
||
| 34 | * @param TransferService $transferService |
||
| 35 | */ |
||
| 36 | public function __construct( |
||
| 37 | UserService $userService, |
||
| 38 | PaymentService $paymentService, |
||
| 39 | TransferService $transferService |
||
| 40 | ) { |
||
| 41 | $this->userService = $userService; |
||
| 42 | $this->paymentService = $paymentService; |
||
| 43 | $this->transferService = $transferService; |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return UserService |
||
| 48 | */ |
||
| 49 | public function getUserService(): UserService |
||
| 50 | { |
||
| 51 | return $this->userService; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return PaymentService |
||
| 56 | */ |
||
| 57 | public function getPaymentService(): PaymentService |
||
| 58 | { |
||
| 59 | return $this->paymentService; |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return TransferService |
||
| 64 | */ |
||
| 65 | public function getTransferService(): TransferService |
||
| 68 | } |
||
| 69 | } |
||
| 70 |