Completed
Push — master ( 369737...64c6ea )
by Alex
07:19
created

IntegerListRouterType::parserRegExp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
namespace Mezon\Router\Types;
3
4
/**
5
 * Default integer list type for router
6
 *
7
 * @author gdever
8
 */
9
class IntegerListRouterType
10
{
11
12
    /**
13
     * Method returns regexp for searching
14
     *
15
     * @return string regexp for searching
16
     */
17
    public static function searchRegExp(): string
18
    {
19
        return '(\[il:'.BaseType::PARAMETER_NAME_REGEXP.'\])';
20
    }
21
22
    /**
23
     * Method returns regexp for parsing
24
     *
25
     * @return string regexp for parsing
26
     */
27
    public static function parserRegExp(): string
28
    {
29
        return '([0-9,]+)';
30
    }
31
}
32