epfremme/complex-map
最新稳定版本:v1.0.0
Composer 安装命令:
composer require epfremme/complex-map
包简介
Complex traversable map class
README 文档
README
Description
Traversable class used to support situations where a standard PHP array needs to be able to map more than just scalar keys to array values and instead use more complex values as the array keys.
For instance a use case for this would be where you need to map an instance of a class (let's say a UserModel) to another value like perhaps a collection of that users Posts. Normally you would be forced to use a unique value like an ID as the array key and as a result have to go and fetch the UserModel by id later on somewhere in your code.
Using this map you would still have access to the User object reference as the Map key. Literally allows you to map anything to anything else for extra flexibility.
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-22