コード例 #1
0
ファイル: base.php プロジェクト: noccy80/lepton-ng
 static function float($length = null, $precision = null)
 {
     $vt = new vartype('float');
     $vt->length($length);
     $vt->precision($precision);
     return $vt;
 }
コード例 #2
0
ファイル: vartypes.php プロジェクト: noccy80/lepton-ng
 function floattest()
 {
     $s = vartype::float()->nullable()->defaultvalue('foo');
     $this->assertFalse($s->getRequired());
     $this->assertEquals($s->getDefault(), 'foo');
 }