Pages

Wednesday, March 26, 2014

The Indexish interface



The Indexish<Tk, Tv> interface 
(HHVM >= 2.5)
Introduction 
Indexish is an interface that works with both arrays and collections, and it is intended to help ease the migration from arrays to typed collections for certain use cases. Indexish supports the array-like, square bracket (e.g. $x[$k]) syntax while also supporting the iteration via foreach.
Interface synopsis 
Indexish<Tk, Tv> extends KeyedTraversable<Tk, Tv> {
}
This interface has no methods.

No comments:

Post a Comment