Completed
Pull Request — master (#6)
by Cesar
01:39
created

BraintreeService::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace App\Service;
4
5
use App\Service\Braintree\PaymentService;
6
7
/**
8
 * Class BraintreeService
9
 * @package App\Service
10
 */
11
class BraintreeService
12
{
13
    /**
14
     * @var PaymentService
15
     */
16
    protected $paymentService;
17
18
    /**
19
     * PaypalService constructor.
20
     * @param PaymentService $paymentService
21
     */
22
    public function __construct(
23
        PaymentService $paymentService
24
    ) {
25
        $this->paymentService = $paymentService;
26
    }
27
28
    /**
29
     * @return PaymentService
30
     */
31
    public function getPaymentService(): PaymentService
32
    {
33
        return $this->paymentService;
34
    }
35
}
36