Controller::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace App\Http\Controllers\API\Download;
4
5
use App\Http\Controllers\API\Controller as BaseController;
6
use App\Services\DownloadService;
7
8
abstract class Controller extends BaseController
9
{
10
    protected $downloadService;
11
12 6
    public function __construct(DownloadService $downloadService)
13
    {
14 6
        $this->downloadService = $downloadService;
15 6
    }
16
}
17