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

BraintreeService   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getPaymentService() 0 4 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