AbstractScope::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
eloc 2
nc 1
nop 0
crap 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 5
    public static function getId(): string
22
    {
23 5
        return str_replace('scope', '', strtolower(preg_replace('/^.*\\\/', '', static::class)));
24
    }
25
}
26