Ternary Class Reference
[Widely used base classes and interfaces]

Atom for ternary-based logic. More...

Inheritance diagram for Ternary:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($boolean=null)
 isNull ()
 isTrue ()
 isFalse ()
 setNull ()
 
Returns:
Ternary

 setTrue ()
 
Returns:
Ternary

 setFalse ()
 
Returns:
Ternary

 getValue ()
 setValue ($boolean=null)
 
Returns:
Ternary

 decide ($true, $false, $null=null)
 toString ()

Static Public Member Functions

static create ($boolean=null)
 
Returns:
Ternary

static spawn ($value, $true, $false, $null=null)
 
Returns:
Ternary


Private Attributes

 $trinity = null


Detailed Description

Atom for ternary-based logic.

Definition at line 18 of file Ternary.class.php.


Constructor & Destructor Documentation

Ternary::__construct ( boolean = null  ) 

Definition at line 22 of file Ternary.class.php.

References setValue().

Here is the call graph for this function:


Member Function Documentation

static Ternary::create ( boolean = null  )  [static]

Returns:
Ternary

Definition at line 30 of file Ternary.class.php.

static Ternary::spawn ( value,
true,
false,
null = null 
) [static]

Returns:
Ternary

Definition at line 38 of file Ternary.class.php.

Ternary::isNull (  ) 

Definition at line 53 of file Ternary.class.php.

Ternary::isTrue (  ) 

Definition at line 58 of file Ternary.class.php.

Ternary::isFalse (  ) 

Definition at line 63 of file Ternary.class.php.

Ternary::setNull (  ) 

Returns:
Ternary

Definition at line 71 of file Ternary.class.php.

Ternary::setTrue (  ) 

Returns:
Ternary

Definition at line 81 of file Ternary.class.php.

Ternary::setFalse (  ) 

Returns:
Ternary

Definition at line 91 of file Ternary.class.php.

Ternary::getValue (  ) 

Definition at line 98 of file Ternary.class.php.

Ternary::setValue ( boolean = null  ) 

Returns:
Ternary

Definition at line 106 of file Ternary.class.php.

Referenced by __construct().

Ternary::decide ( true,
false,
null = null 
)

Definition at line 115 of file Ternary.class.php.

Referenced by toString().

Ternary::toString (  ) 

Implements Stringable.

Definition at line 129 of file Ternary.class.php.

References decide().

Here is the call graph for this function:


Member Data Documentation

Ternary::$trinity = null [private]

Definition at line 20 of file Ternary.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:35 2007 for onPHP by  doxygen 1.5.4