<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Repository; use Illuminate\Support\Collection; class RepositoryUtil { public static function itemsFromArray(array $tGYjm) { return collect($tGYjm)->map(function ($xQd0K) { return (object) $xQd0K; }); } public static function itemFromArray($OV1o4) { return (object) $OV1o4; } public static function makeItem($qe8e3 = array()) { return new EmptyItem($qe8e3); } public static function makeItems($pPL02) { if ($pPL02 instanceof Collection) { return $pPL02; } return collect(array($pPL02)); } }