/**
  * @param integer|null $precision
  * @return Column\Time
  */
 public function time($precision = null)
 {
     $column = new Column\Time(null);
     if (null !== $precision) {
         $column->setOption('precision', (int) $precision);
     }
     return $column;
 }
Пример #2
0
 /**
  * @covers Zend\Db\Sql\Ddl\Column\Time::getExpressionData
  */
 public function testGetExpressionData()
 {
     $column = new Time('foo');
     $this->assertEquals(array(array('%s TIME %s %s', array('foo', 'NOT NULL', ''), array($column::TYPE_IDENTIFIER, $column::TYPE_LITERAL, $column::TYPE_LITERAL))), $column->getExpressionData());
 }