ObjectAble.php 249 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\Robot\Support; trait ObjectAble { public function toObject(Array $array) { return json_decode(json_encode($array)); } }