Login   Register  
PHP Classes
elePHPant
Icontem

Generics: Implementation of generic types

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Pulni4kiya
Name: Pulni4kiya is available for providing paid consulting. Contact Pulni4kiya .
Packages: 5 Browse all classes by Pulni4kiya Browse all classes by
Country: Bulgaria Bulgaria - PHP jobs in Bulgaria
Age: 24
All time rank: 11258 in Bulgaria Bulgaria
Week rank: 486 Up3 in Bulgaria Bulgaria Up
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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.

  Classes of Pulni4kiya  >  Generics  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog (1)  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Generics
Base name: generics
Description: Implementation of generic types
Version: 1.5
PHP version: 5.1
License: Freeware
All time users: 575 users
All time rank: 4770
Week users: 0 users
Week rank: 1831 Equal
 
  Groups   Rate classes User ratings   Dependents   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Data types Modeling and manipulating data types View top rated classes
Group folder image Language Constructs to assist in the language control View top rated classes


  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

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (75.0%) Good (81.2%) - Good (87.5%) - - Not sure (54.4%) 1274
Month: Not yet rated by the users

  Packages that need this class  
Class Dependency Why it is needed
Collections Conditional Needed only for the generic collections

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
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  /  Files folder image 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.

Install with Composer Install with Composer - Download Download all files: generics.tar.gz generics.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.