FloatType

PHP version: 5

Required modules: standard

Required packages: TypeInterface.php, Printable.php



class it\icosaedro\phplint\FloatType
      |  
      `--(it\icosaedro\phplint\TypeInterface)
           `--(it\icosaedro\containers\Printable)

Singleton object that represents the float type

Version: $Date: 2012/02/09 10:12:26 $

Author: Umberto Salsi <salsi@icosaedro.it>

The Types::parseType() method uses this class to represent the result of the compilation of a textual type descriptor.


{

static it\icosaedro\phplint\FloatType factory()

Return the instance that represents the float type


boolean check(
        mixed $v)

implements it\icosaedro\phplint\TypeInterface

Checks if the expression or variable passed is of type float

Parameters:
$v   Any expression or variable.

Return: True if the expression is of the type float.


string __toString()
implements it\icosaedro\containers\Printable

Returns the descriptor of this type, that is "float"

Return: The string "float".


}


Generated by PHPLint Documentator