Completed
Pull Request — master (#17)
by Cesar
10:49
created

PaypalService::getBillingAgreementService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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