PHP Classes

Generics: Implementation of generic types

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 627 All time: 5,049 This week: 455Up
Version License PHP version Categories
generics 1.5Freeware5.1PHP 5, Data types, Language
Description 

Author

This package provides an implementation of generic types in PHP.

It allows defining the types of values to be returned by generic classes so they can be checked dynamically at run-time.

Exceptions are thrown when the defined type does not match the returned values.

Innovation Award
PHP Programming Innovation award nominee
March 2009
Number 9
Generics is a feature available in languages like Java that allows checking and manipulating values of data types that may only be known at run-time, like for instance manipulating collections of values.

This class provides similar implementation of generic type values manipulation in PHP.

Manuel Lemos
Picture of Pulni4kiya
Name: Pulni4kiya is available for providing paid consulting. Contact Pulni4kiya .
Classes: 5 packages by
Country: Bulgaria Bulgaria
Age: 35
All time rank: 11958 in Bulgaria Bulgaria
Week rank: 178 Up2 in Bulgaria Bulgaria Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files (6)  
File Role Description
Files folder imageproxy (2 files)
Plain text file IEquatable Class Interface that has the Equals method
Plain text file IGeneric.php Class The interface that must be implemented by a genric class
Plain text file Type.php Class The Type class. A helper class for the Generics. Could be used for other purposes.
Accessible without login Plain text file example.php Example Just shows some examples

  Files folder image Files (6)  /  proxy  
File Role Description
  Plain text file GenericsCheckProxy.php Class The GenericsCheckProxy class
  Plain text file example.php Example An example of the new features.

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Reuses Unique User Downloads Download Rankings  
 0%1
Total:627
This week:0
All time:5,049
This week:455Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:79%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2171