| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ReadWriteJsonJson extends AbstractArrayBackedDaftObject implements DaftJson |
||
| 10 | { |
||
| 11 | const PROPERTIES = [ |
||
| 12 | 'json', |
||
| 13 | ]; |
||
| 14 | |||
| 15 | const EXPORTABLE_PROPERTIES = [ |
||
| 16 | 'json', |
||
| 17 | ]; |
||
| 18 | |||
| 19 | const JSON_PROPERTIES = [ |
||
| 20 | 'json' => ReadWriteJson::class, |
||
| 21 | ]; |
||
| 22 | |||
| 23 | public function GetJson() : ReadWriteJson |
||
| 24 | { |
||
| 25 | return $this->RetrievePropertyValueFromData('json'); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function SetJson(ReadWriteJson $json) : void |
||
| 29 | { |
||
| 30 | $this->NudgePropertyValue('json', $json); |
||
| 31 | } |
||
| 33 |