Passed
Push — master ( 46cb80...c9437b )
by Mauro
02:03
created

BaseService   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
c 3
b 0
f 0
lcom 1
cbo 1
dl 0
loc 20
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTaskRepository() 0 6 1
1
<?php
2
3
namespace App\Service;
4
5
use App\Repository\TaskRepository;
6
7
/**
8
 * Base Service.
9
 */
10
abstract class BaseService
11
{
12
    protected $database;
13
14
    protected $request;
15
16
    protected $response;
17
18
    protected $args;
19
20
    /**
21
     * @return TaskRepository
22
     */
23
    protected function getTaskRepository()
24
    {
25
        $repository = new TaskRepository($this->database);
26
27
        return $repository;
28
    }
29
}
30