localUnit = setting('units.altitude'); $this->internalUnit = config('phpvms.internal_units.altitude'); if ($value instanceof self) { $value->toUnit($unit); $this->instance = $value->instance; } else { $this->instance = new Length($value, $unit); } } }