fix calendar css, take 2. (#213)
[openemr.git] / interface / modules / zend_modules / library / Zend / Db / Metadata / Object / ColumnObject.php
bloba9b1288c1a083f08a8fef1ea236737691dff2963
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Db\Metadata\Object;
12 class ColumnObject
14 /**
16 * @var string
18 protected $name = null;
20 /**
22 * @var string
24 protected $tableName = null;
26 /**
28 * @var string
30 protected $schemaName = null;
32 /**
34 * @var
36 protected $ordinalPosition = null;
38 /**
40 * @var string
42 protected $columnDefault = null;
44 /**
46 * @var bool
48 protected $isNullable = null;
50 /**
52 * @var string
54 protected $dataType = null;
56 /**
58 * @var int
60 protected $characterMaximumLength = null;
62 /**
64 * @var int
66 protected $characterOctetLength = null;
68 /**
70 * @var int
72 protected $numericPrecision = null;
74 /**
76 * @var int
78 protected $numericScale = null;
80 /**
82 * @var bool
84 protected $numericUnsigned = null;
86 /**
88 * @var array
90 protected $errata = array();
92 /**
93 * Constructor
95 * @param string $name
96 * @param string $tableName
97 * @param string $schemaName
99 public function __construct($name, $tableName, $schemaName = null)
101 $this->setName($name);
102 $this->setTableName($tableName);
103 $this->setSchemaName($schemaName);
107 * Set name
109 * @param string $name
111 public function setName($name)
113 $this->name = $name;
117 * Get name
119 * @return string
121 public function getName()
123 return $this->name;
127 * Get table name
129 * @return string
131 public function getTableName()
133 return $this->tableName;
137 * Set table name
139 * @param string $tableName
140 * @return ColumnObject
142 public function setTableName($tableName)
144 $this->tableName = $tableName;
145 return $this;
149 * Set schema name
151 * @param string $schemaName
153 public function setSchemaName($schemaName)
155 $this->schemaName = $schemaName;
159 * Get schema name
161 * @return string
163 public function getSchemaName()
165 return $this->schemaName;
169 * @return int $ordinalPosition
171 public function getOrdinalPosition()
173 return $this->ordinalPosition;
177 * @param int $ordinalPosition to set
178 * @return ColumnObject
180 public function setOrdinalPosition($ordinalPosition)
182 $this->ordinalPosition = $ordinalPosition;
183 return $this;
187 * @return null|string the $columnDefault
189 public function getColumnDefault()
191 return $this->columnDefault;
195 * @param mixed $columnDefault to set
196 * @return ColumnObject
198 public function setColumnDefault($columnDefault)
200 $this->columnDefault = $columnDefault;
201 return $this;
205 * @return bool $isNullable
207 public function getIsNullable()
209 return $this->isNullable;
213 * @param bool $isNullable to set
214 * @return ColumnObject
216 public function setIsNullable($isNullable)
218 $this->isNullable = $isNullable;
219 return $this;
223 * @return bool $isNullable
225 public function isNullable()
227 return $this->isNullable;
231 * @return null|string the $dataType
233 public function getDataType()
235 return $this->dataType;
239 * @param string $dataType the $dataType to set
240 * @return ColumnObject
242 public function setDataType($dataType)
244 $this->dataType = $dataType;
245 return $this;
249 * @return int|null the $characterMaximumLength
251 public function getCharacterMaximumLength()
253 return $this->characterMaximumLength;
257 * @param int $characterMaximumLength the $characterMaximumLength to set
258 * @return ColumnObject
260 public function setCharacterMaximumLength($characterMaximumLength)
262 $this->characterMaximumLength = $characterMaximumLength;
263 return $this;
267 * @return int|null the $characterOctetLength
269 public function getCharacterOctetLength()
271 return $this->characterOctetLength;
275 * @param int $characterOctetLength the $characterOctetLength to set
276 * @return ColumnObject
278 public function setCharacterOctetLength($characterOctetLength)
280 $this->characterOctetLength = $characterOctetLength;
281 return $this;
285 * @return int the $numericPrecision
287 public function getNumericPrecision()
289 return $this->numericPrecision;
293 * @param int $numericPrecision the $numericPrevision to set
294 * @return ColumnObject
296 public function setNumericPrecision($numericPrecision)
298 $this->numericPrecision = $numericPrecision;
299 return $this;
303 * @return int the $numericScale
305 public function getNumericScale()
307 return $this->numericScale;
311 * @param int $numericScale the $numericScale to set
312 * @return ColumnObject
314 public function setNumericScale($numericScale)
316 $this->numericScale = $numericScale;
317 return $this;
321 * @return bool
323 public function getNumericUnsigned()
325 return $this->numericUnsigned;
329 * @param bool $numericUnsigned
330 * @return ColumnObject
332 public function setNumericUnsigned($numericUnsigned)
334 $this->numericUnsigned = $numericUnsigned;
335 return $this;
339 * @return bool
341 public function isNumericUnsigned()
343 return $this->numericUnsigned;
347 * @return array the $errata
349 public function getErratas()
351 return $this->errata;
355 * @param array $erratas
356 * @return ColumnObject
358 public function setErratas(array $erratas)
360 foreach ($erratas as $name => $value) {
361 $this->setErrata($name, $value);
363 return $this;
367 * @param string $errataName
368 * @return mixed
370 public function getErrata($errataName)
372 if (array_key_exists($errataName, $this->errata)) {
373 return $this->errata[$errataName];
375 return;
379 * @param string $errataName
380 * @param mixed $errataValue
381 * @return ColumnObject
383 public function setErrata($errataName, $errataValue)
385 $this->errata[$errataName] = $errataValue;
386 return $this;