Documentation is available at Boolean.php
- <?php
- class PHPFIT_TypeAdapter_Boolean extends PHPFIT_TypeAdapter {
- public function equals($a, $b) {
- return $a == $b;
- }
- public function parse($s) {
- if ($s == "false")
- return false;
- else
- if ($s == "true")
- return true;
- return "not a boolean";
- }
- }
- ?>
Documentation generated on Sun, 02 Apr 2006 23:20:49 +0000 by phpDocumentor 1.3.0RC5