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

UrlParameter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getMatch() 0 2 1
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
}