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