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