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

XmlParser::parseString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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