type = $type; } if ($key !== null) { $this->key = $key; } if ($foreignKey !== null) { $this->foreignKey = $foreignKey; } } }