Completed
Push — 6.0 ( e3a90b...e48ed6 )
by liu
03:15
created

Service::getStub()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
// +----------------------------------------------------------------------
1 ignored issue
show
Coding Style introduced by
You must use "/**" style comments for a file comment
Loading history...
3
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4
// +----------------------------------------------------------------------
5
// | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.
6
// +----------------------------------------------------------------------
7
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
8
// +----------------------------------------------------------------------
9
// | Author: liu21st <[email protected]>
10
// +----------------------------------------------------------------------
11
12
namespace think\console\command\make;
13
14
use think\console\command\Make;
15
16
class Service extends Make
1 ignored issue
show
Coding Style introduced by
Missing doc comment for class Service
Loading history...
17
{
18
    protected $type = "Service";
19
20
    protected function configure()
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function configure()
Loading history...
21
    {
22
        parent::configure();
23
        $this->setName('make:service')
24
            ->setDescription('Create a new Service class');
25
    }
26
27
    protected function getStub(): string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getStub()
Loading history...
28
    {
29
        return __DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'service.stub';
30
    }
31
32
    protected function getNamespace(string $app): string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getNamespace()
Loading history...
33
    {
34
        return parent::getNamespace($app) . '\\service';
35
    }
36
}
37