Completed
Push — master ( f46373...d10f54 )
by
unknown
04:56
created

AbstractScope   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
1
<?php
0 ignored issues
show
Coding Style introduced by
End of line character is invalid; expected "\n" but found "\r\n"
Loading history...
2
/**
3
 * Created by Ruslan Molodyko.
4
 * Date: 07.09.2016
5
 * Time: 5:30
6
 */
7
namespace samsonframework\container\definition\scope;
8
9
/**
10
 * Class ControllerScope
11
 *
12
 * @author Ruslan Molodyko <[email protected]>
13
 */
14
class AbstractScope
15
{
16
    /**
17
     * Get scope id
18
     *
19
     * @return string
20
     */
21 1
    public static function getId(): string
22
    {
23 1
        return str_replace('scope', '', strtolower(preg_replace('/^.*\\\/', '', static::class)));
24
    }
25
}
26