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

Service   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 19
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getNamespace() 0 3 1
A configure() 0 5 1
A getStub() 0 3 1
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