Test Failed
Branch master (fb3e9d)
by 世昌
03:53
created

UrlParameter::getMatch()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace nebula\route\uri\parameter;
3
4
use nebula\route\uri\parameter\Parameter;
5
6
/**
7
 * 匹配 string 参数
8
 */
9
class UrlParameter extends StringParameter {
10
11
    protected static $name = 'url';
12
    
13
    /**
14
     * 获取匹配字符串
15
     *
16
     * @return string
17
     */
18
    function getMatch():string {
19
        return '(.+)';
20
    }
21
}