Is this conflating a getter and a setter? If so perhaps a separate `setDuration` and `duration` (the latter being the getter) would be clearer.