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