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

MakeItemProcessor   A

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 getTemplateFilename() 0 3 1
A getSuffix() 0 3 1
A getCommandName() 0 3 1
A getNamespace() 0 3 1
A getDescriptionClass() 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;
15
16
final class MakeItemProcessor extends AbstractMaker
17
{
18 1
    public static function getCommandName(): string
19
    {
20 1
        return 'make:roach:item:processor';
21
    }
22
23 2
    protected static function getDescriptionClass(): string
24
    {
25 2
        return 'item processor';
26
    }
27
28 1
    protected function getSuffix(): string
29
    {
30 1
        return 'ItemProcessor';
31
    }
32
33 1
    protected function getNamespace(): string
34
    {
35 1
        return 'Spider\\ItemProcessor\\';
36
    }
37
38 1
    protected function getTemplateFilename(): string
39
    {
40 1
        return __DIR__ . '/../Resources/skeleton/ItemProcessor.tpl.php';
41
    }
42
}
43