RssMapper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 1
Metric Value
eloc 2
c 2
b 1
f 1
dl 0
loc 8
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
/**
3
 * @author Boudewijn Schoon <[email protected]>
4
 * @author Rik van der Kemp <[email protected]>
5
 * @copyright Zicht Online <http://www.zicht.nl>
6
 */
7
8
namespace Zicht\Bundle\UrlBundle\Aliasing\Mapper;
9
10
/**
11
 * Class RssMapper
12
 *
13
 * Helper to map urls in an Rss string from internal to public aliasing or vice versa.
14
 *
15
 * @package Zicht\Bundle\UrlBundle\Aliasing
16
 */
17
class RssMapper extends AbstractMapper
18
{
19
    /**
20
     * Constructor.
21
     */
22 3
    public function __construct()
23
    {
24 3
        parent::__construct(['application/rss+xml'], '/(<link>)(.*?)(<\/link>)/');
25 3
    }
26
}
27