PathSegmentFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 4
Bugs 0 Features 0
Metric Value
wmc 2
c 4
b 0
f 0
lcom 0
cbo 1
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPatternOptionKey() 0 4 1
A getDelimiter() 0 4 1
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