TrackManiaControl/core/General/JsonSerializeTrait.php
2017-04-04 19:40:31 +02:00

14 lines
278 B
PHP

<?php
namespace ManiaControl\General;
/**
* Class DumpTrait Trait for Implementing the Methods for the JsonSerializeable Interface
*
* @package ManiaControl\General
*/
trait JsonSerializeTrait {
public function toJson(){
return json_encode(get_object_vars($this));
}
}