container = $container; } /** * Make a duration object. * * @param float $seconds The duration in seconds. * * @return Duration */ public function make( float $seconds ): Duration { $this->container->when( Duration::class ) ->needs( '$seconds' ) ->give( $seconds ); return $this->container->get( Duration::class ); } }