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