Public Member Functions | |
__construct ($boolean=null) | |
isNull () | |
isTrue () | |
isFalse () | |
setNull () | |
| |
setTrue () | |
| |
setFalse () | |
| |
getValue () | |
setValue ($boolean=null) | |
| |
decide ($true, $false, $null=null) | |
toString () | |
Static Public Member Functions | |
static | create ($boolean=null) |
| |
static | spawn ($value, $true, $false, $null=null) |
| |
Private Attributes | |
$trinity = null |
Definition at line 18 of file Ternary.class.php.
Ternary::__construct | ( | $ | boolean = null |
) |
Definition at line 22 of file Ternary.class.php.
References setValue().
static Ternary::create | ( | $ | boolean = null |
) | [static] |
static Ternary::spawn | ( | $ | value, | |
$ | true, | |||
$ | false, | |||
$ | null = null | |||
) | [static] |
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 | ( | ) |
Ternary::setTrue | ( | ) |
Ternary::setFalse | ( | ) |
Ternary::getValue | ( | ) |
Definition at line 98 of file Ternary.class.php.
Ternary::setValue | ( | $ | boolean = null |
) |
Ternary::decide | ( | $ | true, | |
$ | false, | |||
$ | null = null | |||
) |
Ternary::toString | ( | ) |
Implements Stringable.
Definition at line 129 of file Ternary.class.php.
References decide().
Ternary::$trinity = null [private] |
Definition at line 20 of file Ternary.class.php.