AbstractController::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
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