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