PHP Classes

File: TypeHint.php

Recommend this page to a friend!
  Classes of Martin Alterisio   Type Hint Class   TypeHint.php   Download  
File: TypeHint.php
Role: Class source
Content type: text/plain
Description: TypeHint Interface
Class: Type Hint Class
Implement type hinting support for base PHP types
Author: By
Last change: Accessible without user login
Date: 16 years ago
Size: 415 bytes
 

Contents

Class file image Download
<?php
/**
 * @package typehintclass
 */

/**
 * An interface to classes that stand for objects of another type.
 */
interface TypeHint {
   
/**
     * Indicates if this class represents a type hint for provided value.
     * @param mixed $value The value.
     * @return bool True if this class represents a type hint for that value.
     */
   
public static function isTypeHintFor($value);
}
?>