ObjectAble.php 248 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 <?php /** * Created by PhpStorm. * User: HanSon * Date: 2017/1/13 * Time: 17:23 */ namespace Hanson\Vbot\Support; trait ObjectAble { public function toObject(Array $array) { return json_decode(json_encode($array)); } }