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