| 1 | <?php |
||
| 19 | class DefaultReaderContext implements ReaderContext |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * True if we're reading into an existing object |
||
| 23 | * |
||
| 24 | * @var bool |
||
| 25 | */ |
||
| 26 | private $usesExistingObject = false; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * If we're reading into an existing object |
||
| 30 | * |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | 5 | public function usesExistingObject(): bool |
|
| 37 | |||
| 38 | /** |
||
| 39 | * When deserializing into an existing object |
||
| 40 | * |
||
| 41 | * @param bool $usesExistingObject |
||
| 42 | * @return ReaderContext |
||
| 43 | */ |
||
| 44 | 4 | public function setUsesExistingObject(bool $usesExistingObject): ReaderContext |
|
| 50 | } |
||
| 51 |