added dumpable interface, implemented all ManiaPlanet Callbacks
This commit is contained in:
19
core/General/DumpTrait.php
Normal file
19
core/General/DumpTrait.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Lukas
|
||||
* Date: 24. Mär. 2017
|
||||
* Time: 21:59
|
||||
*/
|
||||
|
||||
namespace ManiaControl\General;
|
||||
|
||||
|
||||
trait DumpTrait {
|
||||
/**
|
||||
* Var_Dump Public Properties of the Object
|
||||
*/
|
||||
public function dump() {
|
||||
var_dump(json_decode(json_encode($this)));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user