library complex-map
Complex traversable map class
epfremme/complex-map
Complex traversable map class
- Saturday, August 22, 2015
- by epfremmer
- Repository
- 1 Watchers
- 0 Stars
- 13 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
ComplexMap
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., (*1)
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., (*2)
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., (*3)
dev-develop
dev-develop
Complex traversable map class
Sources
Download
MIT
The Requires
The Development Requires
by
Edward Pfremmer
dev-master
9999999-dev
Complex traversable map class
Sources
Download
MIT
The Requires
The Development Requires
by
Edward Pfremmer
v1.0.0
1.0.0.0
Complex traversable map class
Sources
Download
MIT
The Requires
The Development Requires
by
Edward Pfremmer