simplepie /
utility-pack
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Copyright (c) 2010–2019 Ryan Parman <http://ryanparman.com>. |
||
| 4 | * Copyright (c) 2016–2019 Contributors. |
||
| 5 | * |
||
| 6 | * http://opensource.org/licenses/Apache2.0 |
||
| 7 | */ |
||
| 8 | |||
| 9 | declare(strict_types=1); |
||
| 10 | |||
| 11 | namespace SimplePie\UtilityPack\Mixin; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Shared code for working with raw feed content. |
||
| 15 | */ |
||
| 16 | trait RawDocumentTrait |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * The raw, unparsed contents of the feed's stream. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $rawDocument; |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 24 | |||
| 25 | /** |
||
| 26 | * Retrieves the raw, unparsed contents of the feed's stream. |
||
| 27 | */ |
||
| 28 | 1 | public function getRawDocument(): string |
|
| 29 | { |
||
| 30 | 1 | return $this->rawDocument; |
|
| 31 | } |
||
| 32 | } |
||
| 33 |