Completed
Pull Request — master (#11)
by Cesar
01:33
created

BraintreeService::getPaymentService()   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\Braintree\CustomerService;
6
use App\Service\Braintree\PaymentService;
7
8
/**
9
 * Class BraintreeService
10
 * @package App\Service
11
 */
12
class BraintreeService
13
{
14
    /**
15
     * @var PaymentService
16
     */
17
    protected $paymentService;
18
19
    /**
20
     * @var CustomerService
21
     */
22
    protected $customerService;
23
24
    /**
25
     * PaypalService constructor.
26
     * @param PaymentService $paymentService
27
     * @param CustomerService $customerService
28
     */
29
    public function __construct(
30
        PaymentService $paymentService,
31
        CustomerService $customerService
32
    ) {
33
        $this->paymentService = $paymentService;
34
        $this->customerService = $customerService;
35
    }
36
37
    /**
38
     * @return PaymentService
39
     */
40
    public function getPaymentService(): PaymentService
41
    {
42
        return $this->paymentService;
43
    }
44
45
    /**
46
     * @return CustomerService
47
     */
48
    public function getCustomerService(): CustomerService
49
    {
50
        return $this->customerService;
51
    }
52
}
53