Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class XmlParser implements BodyParserInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var StreamInterface |
||
24 | */ |
||
25 | private $stream; |
||
26 | |||
27 | /** |
||
28 | * Creates a XML Body Parser |
||
29 | * |
||
30 | * @param StreamInterface $stream |
||
31 | */ |
||
32 | public function __construct(StreamInterface $stream) |
||
33 | { |
||
34 | $this->stream = $stream; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Parses the body as a XML document |
||
39 | * |
||
40 | * @return \SimpleXMLElement |
||
41 | */ |
||
42 | public function parse() |
||
46 | } |
||
47 | } |
||
48 |