AbstractController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 21
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace App\Controller\Braintree;
4
5
use App\Service\Braintree\WebhookService;
6
use App\Service\BraintreeService;
7
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController as SymfonyAbstractController;
8
9
/**
10
 * Class AbstractController
11
 * @package App\Controller\Braintree
12
 */
13
class AbstractController extends SymfonyAbstractController
14
{
15
    /**
16
     * @var BraintreeService
17
     */
18
    protected BraintreeService $braintreeService;
19
20
    /**
21
     * @var WebhookService
22
     */
23
    protected WebhookService $webhookService;
24
25
    /**
26
     * DefaultController constructor.
27
     * @param BraintreeService $braintreeService
28
     * @param WebhookService $webhookService
29
     */
30
    public function __construct(BraintreeService $braintreeService, WebhookService $webhookService)
31
    {
32
        $this->braintreeService = $braintreeService;
33
        $this->webhookService = $webhookService;
34
    }
35
}
36