MakeResponseMiddleware   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 25
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescriptionClass() 0 3 1
A getCommandName() 0 3 1
A getSuffix() 0 3 1
A getNamespace() 0 3 1
A getTemplateFilename() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * Copyright (c) 2022 Ne-Lexa <[email protected]>
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 *
11
 * @see https://github.com/Ne-Lexa/roach-php-bundle
12
 */
13
14
namespace Nelexa\RoachPhpBundle\Maker\Downloader;
15
16
use Nelexa\RoachPhpBundle\Maker\AbstractMaker;
17
18
final class MakeResponseMiddleware extends AbstractMaker
19
{
20 1
    public static function getCommandName(): string
21
    {
22 1
        return 'make:roach:middleware:downloader:response';
23
    }
24
25 2
    protected static function getDescriptionClass(): string
26
    {
27 2
        return 'downloader response middleware';
28
    }
29
30 1
    protected function getSuffix(): string
31
    {
32 1
        return 'ResponseMiddleware';
33
    }
34
35 1
    protected function getNamespace(): string
36
    {
37 1
        return 'Spider\\Middleware\\Downloader\\';
38
    }
39
40 1
    protected function getTemplateFilename(): string
41
    {
42 1
        return __DIR__ . '/../../Resources/skeleton/Downloader/ResponseMiddleware.tpl.php';
43
    }
44
}
45