Base   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getTaskService() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Controller\Task;
6
7
use App\Controller\BaseController;
8
use App\Service\TaskService;
9
use Slim\Container;
10
11
abstract class Base extends BaseController
12
{
13
    public function __construct(Container $container)
14
    {
15
        $this->container = $container;
16
    }
17
18
    protected function getTaskService(): TaskService
19
    {
20
        return $this->container->get('task_service');
21
    }
22
}
23