Completed
Push — master ( 13bd05...68fc02 )
by Alex
04:24
created

XmlParser   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 1
c 2
b 1
f 0
lcom 0
cbo 0
dl 0
loc 14
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A parseString() 0 4 1
1
<?php
2
3
/**
4
 * Rss/Atom Bundle for Symfony 2.
5
 *
6
 *
7
 * @license http://opensource.org/licenses/lgpl-3.0.html LGPL
8
 * @copyright (c) 2013, Alexandre Debril
9
 */
10
namespace Debril\RssAtomBundle\Protocol\Parser;
11
12
/**
13
 * Class XmlParser
14
 *
15
 */
16
class XmlParser
17
{
18
    /**
19
     * Parse a string and return an XML element
20
     * Pretty much a no-op there, but you may want top override it ti add more
21
     *
22
     * @param string $xmlString
23
     * @return \SimpleXMLElement
24
     */
25 1
    public function parseString($xmlString)
26
    {
27 1
        return new \SimpleXMLElement($xmlString);
28
    }
29
}
30