MakeSpider::getAfterSuccessMessage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
ccs 4
cts 4
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;
15
16
final class MakeSpider extends AbstractMaker
17
{
18 1
    public static function getCommandName(): string
19
    {
20 1
        return 'make:roach:spider';
21
    }
22
23 1
    protected static function getDescriptionClass(): string
24
    {
25 1
        return 'spider';
26
    }
27
28 1
    protected function getSuffix(): string
29
    {
30 1
        return 'Spider';
31
    }
32
33 1
    protected function getNamespace(): string
34
    {
35 1
        return 'Spider\\';
36
    }
37
38 1
    protected function getTemplateFilename(): string
39
    {
40 1
        return __DIR__ . '/../Resources/skeleton/Spider.tpl.php';
41
    }
42
43 1
    protected function getAfterSuccessMessage(): string
44
    {
45 1
        return sprintf(
46 1
            'Next: Open your new %s class and set start urls and write parse method!',
47 1
            self::getDescriptionClass()
48
        );
49
    }
50
}
51