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