Base::getTaskService()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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