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