Passed
Push — feature/depend-on-metadata-inf... ( ef854e...953c11 )
by
unknown
39:13 queued 32:26
created

RssMapper::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @copyright Zicht Online <http://www.zicht.nl>
4
 */
5
6
namespace Zicht\Bundle\UrlBundle\Aliasing\Mapper;
7
8
/**
9
 * Class RssMapper
10
 *
11
 * Helper to map urls in an Rss string from internal to public aliasing or vice versa.
12
 *
13
 * @package Zicht\Bundle\UrlBundle\Aliasing
14
 */
15
class RssMapper extends AbstractMapper
16
{
17
    /**
18
     * Constructor.
19
     */
20
    public function __construct()
21
    {
22
        parent::__construct(['application/rss+xml'], '/(<link>)(.*?)(<\/link>)/');
23
    }
24
}
25