| 1 | <?php namespace Scriptotek\OaiPmh; |
||
| 8 | class Response |
||
| 9 | { |
||
| 10 | |||
| 11 | /** @var string Raw XML response */ |
||
| 12 | protected $rawResponse; |
||
| 13 | |||
| 14 | /** @var QuiteSimpleXMLElement XML response */ |
||
| 15 | protected $response; |
||
| 16 | |||
| 17 | /** @var Client Reference to OAI-PMH client object */ |
||
| 18 | protected $client; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Create a new response |
||
| 22 | * |
||
| 23 | * @param string $text Raw XML response |
||
| 24 | * @param Client $client OAI-PMH client reference (optional) |
||
| 25 | */ |
||
| 26 | public function __construct($text, &$client = null) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Get the raw xml response |
||
| 58 | * |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | public function asXml() |
||
| 65 | } |
||
| 66 |