Example #1
0
 static function float($length = null, $precision = null)
 {
     $vt = new vartype('float');
     $vt->length($length);
     $vt->precision($precision);
     return $vt;
 }
Example #2
0
 function floattest()
 {
     $s = vartype::float()->nullable()->defaultvalue('foo');
     $this->assertFalse($s->getRequired());
     $this->assertEquals($s->getDefault(), 'foo');
 }