public function __construct($name, array $attributes = array())
{
$this->name = $name;
$this->attributes = $attributes;
// predefined properties in SQLBuilder\Universal\Syntax\Column
$this->primary = $attributes['primary'];
$this->unsigned = $attributes['unsigned'];
$this->type = $attributes['type'];
$this->isa = $attributes['isa'];
$this->notNull = $attributes['notNull'];
if (isset($attributes['required'])) {
$this->required = $attributes['required'];
}
if (isset($attributes['filter'])) {
$this->filter = $attributes['filter'];
}
if (isset($attributes['canonicalizer'])) {
$this->canonicalizer = $attributes['canonicalizer'];
}
if (isset($attributes['validator'])) {
$this->validator = $attributes['validator'];
}
if (isset($attributes['validValues'])) {
$this->validValues = $attributes['validValues'];
}
if (isset($attributes['default'])) {
$this->default = $attributes['default'];
}
}