| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 77.78% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | abstract class ResponseObject { |
||
| 21 | /** |
||
| 22 | * Originale response object. |
||
| 23 | * |
||
| 24 | * @var object|null |
||
| 25 | */ |
||
| 26 | private $original_object; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get original object. |
||
| 30 | * |
||
| 31 | * @return object|null |
||
| 32 | */ |
||
| 33 | public function get_original_object() { |
||
| 34 | return $this->original_object; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Set original object. |
||
| 39 | * |
||
| 40 | * @param object|null $object Object. |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | 17 | public function set_original_object( $object ) { |
|
| 44 | 17 | $this->original_object = $object; |
|
| 45 | 17 | } |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Get JSON. |
||
| 49 | * |
||
| 50 | * @return object |
||
| 51 | */ |
||
| 52 | 5 | public function get_json() { |
|
| 58 | } |
||
| 59 | } |
||
| 60 |