harp-orm/lazy-array

一个仅在需要时才加载内容的数组

0.1.1 2015-09-04 08:42 UTC

This package is auto-updated.

Last update: 2024-09-21 20:46:25 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version

一个仅在需要时才加载内容的数组

安装

通过 composer 安装

composer require harp-orm/lazy-array

用法

$arr = new LazyArray($loader);

// This is where the loader->load() method gets executed
echo $arr[2];

许可证

版权(c)2015,Clippings Ltd. 由 Ivan Kerin 开发

在 BSD-3-Clause 许可下,请阅读 LICENSE 文件。