| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Serializable |
||
| 10 | { |
||
| 11 | const _ENTITY_NS_PREFIX = 'PierInfor\\Gears\\Entity\\'; |
||
| 12 | const _SETTER_PREFIX = 'set'; |
||
| 13 | const _GETTER_PREFIX = 'get'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * ctor |
||
| 17 | */ |
||
| 18 | public function __construct() |
||
| 19 | { |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * json encoder |
||
| 24 | */ |
||
| 25 | 1 | public function __toString() |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * hydrate an object from \stdClass |
||
| 32 | */ |
||
| 33 | 4 | public function hydrate(\stdClass $instance): Serializable |
|
| 47 |