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