types->get($column->type); } public function column(string $name): ?Column { return $this->set->column($name); } /** native / foreign(既存の列キーをそのまま使う)列か。 */ public function usesExistingKey(Column $column): bool { return $column->type === 'foreign' || $this->type($column)?->nativeKey() !== null; } }