PathSegmentFactory::getDelimiter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Dash
4
 *
5
 * @link      http://github.com/DASPRiD/Dash For the canonical source repository
6
 * @copyright 2013-2015 Ben Scholzen 'DASPRiD'
7
 * @license   http://opensource.org/licenses/BSD-2-Clause Simplified BSD License
8
 */
9
10
namespace Dash\Parser;
11
12
/**
13
 * Factory for path segments.
14
 */
15
class PathSegmentFactory extends AbstractSegmentFactory
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20
    protected function getPatternOptionKey()
21
    {
22
        return 'path';
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    protected function getDelimiter()
29
    {
30
        return '/';
31
    }
32
}
33