Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
JsonSerializableObject | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
jsonSerialize() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
<?php | |
namespace TriNetAssess; | |
abstract class JsonSerializableObject implements \JsonSerializable | |
{ | |
/** | |
* Called when encoded with json_encode | |
* | |
* @return array | |
*/ | |
public function jsonSerialize() | |
{ | |
return get_object_vars($this); | |
} | |
} |