3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Db\Sql\Ddl\Column
;
12 class Date
extends Column
17 protected $specification = '%s DATE %s %s';
22 public function __construct($name)
30 public function getExpressionData()
32 $spec = $this->specification
;
35 $types = array(self
::TYPE_IDENTIFIER
);
36 $params[] = $this->name
;
38 $types[] = self
::TYPE_LITERAL
;
39 $params[] = (!$this->isNullable
) ?
'NOT NULL' : '';
41 $types[] = ($this->default !== null) ? self
::TYPE_VALUE
: self
::TYPE_LITERAL
;
42 $params[] = ($this->default !== null) ?
$this->default : '';