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