Completed
Pull Request — master (#4)
by Cesar
01:51
created

PaypalService::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.8333
c 0
b 0
f 0
cc 1
nc 1
nop 5
1
<?php
2
3
namespace App\Service;
4
5
use App\Service\Paypal\IdentityService;
6
use App\Service\Paypal\InvoiceService;
7
use App\Service\Paypal\PaymentService;
8
use App\Service\Paypal\PayoutService;
9
use App\Service\Paypal\ReportingService;
10
11
/**
12
 * Class PaypalService
13
 * @package App\Service
14
 */
15
class PaypalService
16
{
17
    /**
18
     * @var IdentityService
19
     */
20
    protected $identityService;
21
22
    /**
23
     * @var PaymentService
24
     */
25
    protected $paymentService;
26
27
    /**
28
     * @var PayoutService
29
     */
30
    protected $payoutService;
31
32
    /**
33
     * @var ReportingService
34
     */
35
    protected $reportingService;
36
37
    /**
38
     * @var InvoiceService
39
     */
40
    protected $invoiceService;
41
42
    /**
43
     * PaypalService constructor.
44
     * @param IdentityService $identityService
45
     * @param PaymentService $paymentService
46
     * @param PayoutService $payoutService
47
     * @param ReportingService $reportingService
48
     * @param InvoiceService $invoiceService
49
     */
50
    public function __construct(
51
        IdentityService $identityService,
52
        PaymentService $paymentService,
53
        PayoutService $payoutService,
54
        ReportingService $reportingService,
55
        InvoiceService $invoiceService
56
    ) {
57
        $this->identityService = $identityService;
58
        $this->paymentService = $paymentService;
59
        $this->payoutService = $payoutService;
60
        $this->reportingService = $reportingService;
61
        $this->invoiceService = $invoiceService;
62
    }
63
64
    /**
65
     * @return IdentityService
66
     */
67
    public function getIdentityService(): IdentityService
68
    {
69
        return $this->identityService;
70
    }
71
72
    /**
73
     * @return PaymentService
74
     */
75
    public function getPaymentService(): PaymentService
76
    {
77
        return $this->paymentService;
78
    }
79
80
    /**
81
     * @return PayoutService
82
     */
83
    public function getPayoutService(): PayoutService
84
    {
85
        return $this->payoutService;
86
    }
87
88
    /**
89
     * @return ReportingService
90
     */
91
    public function getReportingService(): ReportingService
92
    {
93
        return $this->reportingService;
94
    }
95
96
    /**
97
     * @return InvoiceService
98
     */
99
    public function getInvoiceService(): InvoiceService
100
    {
101
        return $this->invoiceService;
102
    }
103
}
104