ObjectType

PHP version: 5

Required modules: standard

Required packages: TypeInterface.php, Printable.php



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

Singleton object that represents a generic object instance of any class

Version: $Date: 2012/05/06 16:06:42 $

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\ObjectType factory()

Return the instance that represents the object type


boolean check(
        mixed $v)

implements it\icosaedro\phplint\TypeInterface

Checks if the expression or variable passed is of type object

Parameters:
$v   Any expression or variable.

Return: True if the expression is either the NULL value or it is an object.


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

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

Return: The string "object".


}


Generated by PHPLint Documentator