| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 40% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class AbstractWbemObject implements Arrayable, Jsonable |
||
| 14 | { |
||
| 15 | use ComHasAttributes; |
||
| 16 | |||
| 17 | protected $object; |
||
| 18 | |||
| 19 | protected $merge_parent_casting = true; |
||
| 20 | |||
| 21 | protected $merge_parent_hidden_attributes = true; |
||
| 22 | |||
| 23 | protected $hidden_attributes = ['object', 'services', 'resolve_property_sets', 'config']; |
||
| 24 | |||
| 25 | 2 | public function __construct(ComVariantWrapper $object) |
|
| 26 | { |
||
| 27 | 2 | $this->object = $object; |
|
| 28 | 2 | $this->mergeHiddenAttributes($this->hidden_attributes, $this->merge_parent_hidden_attributes); |
|
| 29 | 2 | } |
|
| 30 | |||
| 31 | public function toJson(): string |
||
| 32 | { |
||
| 33 | return json_encode($this->toArray()); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function toString(): string |
||
| 37 | { |
||
| 38 | return $this->toJson(); |
||
| 39 | } |
||
| 40 | |||
| 41 | public function __toString() |
||
| 44 | } |
||
| 45 | } |
||
| 46 |