Passed
Branch develop (f4e2a8)
by Alexey
06:15 queued 03:39
created

MakeRequestMiddleware::getTemplateFilename()   A

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
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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 MakeRequestMiddleware extends AbstractMaker
19
{
20 1
    public static function getCommandName(): string
21
    {
22 1
        return 'make:roach:middleware:downloader:request';
23
    }
24
25 2
    protected static function getDescriptionClass(): string
26
    {
27 2
        return 'downloader request middleware';
28
    }
29
30 1
    protected function getSuffix(): string
31
    {
32 1
        return 'RequestMiddleware';
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/RequestMiddleware.tpl.php';
43
    }
44
}
45