Exemplo n.º 1
0
 /**
  * @covers Zend\Db\Sql\Ddl\Column\Float::getExpressionData
  */
 public function testGetExpressionData()
 {
     $column = new Float('foo', 5, 10);
     $this->assertEquals(array(array('%s DECIMAL(%s) %s %s', array('foo', '5, 10', 'NOT NULL', ''), array($column::TYPE_IDENTIFIER, $column::TYPE_LITERAL, $column::TYPE_LITERAL, $column::TYPE_LITERAL))), $column->getExpressionData());
 }
Exemplo n.º 2
0
 public function __construct($name, $digits, $decimal, $nullable = false)
 {
     parent::__construct($name, $digits, $decimal);
     $this->setNullable($nullable);
 }