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

BaseService::getTaskRepository()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
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