| 1 | <?php |
||
| 6 | abstract class PartialResponse implements PartialResponseInterface |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * Holds the original response object |
||
| 10 | * |
||
| 11 | * @var PsrResponseInterface |
||
| 12 | */ |
||
| 13 | protected $originalResponse; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Holds an XML object |
||
| 17 | * |
||
| 18 | * @var \SimpleXMLElement |
||
| 19 | */ |
||
| 20 | protected $xmlDoc; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param PsrResponseInterface $originalResponse |
||
| 24 | * @param \SimpleXMLElement $xmlDoc |
||
| 25 | */ |
||
| 26 | public function __construct(PsrResponseInterface $originalResponse, \SimpleXMLElement $xmlDoc) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return PsrResponseInterface |
||
| 35 | */ |
||
| 36 | public function getOriginalResponse() : PsrResponseInterface |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return \SimpleXMLElement |
||
| 43 | */ |
||
| 44 | public function getXmlDoc() : \SimpleXMLElement |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Is called after the contructor has initialized the properties |
||
| 51 | * Use this to do any initialization you need |
||
| 52 | */ |
||
| 53 | protected function init() |
||
| 56 | } |
||
| 57 |