public function toColumnAttrsString()
{
$column = $this->getAfterOrBeforeColumn();
$line = sprintf('%s %-16s %-16s', $this->flag, $this->name, $column->type);
$attrStrs = array();
if (!empty($column->attributes)) {
foreach ($column->attributes as $property => $value) {
if ($property == 'type') {
continue;
}
if (is_object($value)) {
if ($value instanceof Closure) {
$attrStrs[] = "{$property}:{Closure}";
} else {
$attrStrs[] = "{$property}:" . str_replace("\n", '', var_export($value, true));
}
} elseif (is_string($value)) {
$attrStrs[] = "{$property}:{$value}";
}
}
}
return $line . implode(', ', $attrStrs);
}