ExampleService   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 30
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A alias() 0 4 1
A provider() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: reallyli
5
 * Date: 18/10/11
6
 * Time: 下午2:47.
7
 */
8
9
namespace Reallyli\LaravelUnicomponent\Tests\Example;
10
11
use Reallyli\LaravelUnicomponent\UnicomponentServiceInterface;
12
13
class ExampleService implements UnicomponentServiceInterface
14
{
15
    /**
16
     * Method description:alias.
17
     *
18
     * @author reallyli <[email protected]>
19
     * @since 18/10/11
20
     * @param
21
     * @return mixed
22
     * 返回值类型:string,array,object,mixed(多种,不确定的),void(无返回值)
23
     */
24
    public function alias()
25
    {
26
        return 'example';
27
    }
28
29
    /**
30
     * Method description:provider.
31
     *
32
     * @author reallyli <[email protected]>
33
     * @since 18/10/11
34
     * @param
35
     * @return mixed
36
     * 返回值类型:string,array,object,mixed(多种,不确定的),void(无返回值)
37
     */
38
    public function provider()
39
    {
40
        return Example::class;
41
    }
42
}
43