protected function addUndoEnd(Builder $builder): void
    {
        $builder->macro('undoEnd', function (Builder $builder) {
            $builder->withEnded();

            return $builder->update(['ended_at' => null]);
        });
    }
protected function addUndoEnd(Builder $builder): void
    {
        $builder->macro('undoEnd', function (Builder $builder) {
            $builder->withEnded();

            return $builder->update(['ended_at' => null]);
        });
    }
protected function addUndoEnd ( Builder $ builder ) : void { $ builder -> macro ( 'undoEnd' , function ( Builder $ builder ) { $ builder -> withEnded ( ) ; return $ builder -> update ( [ 'ended_at' => null ] ) ; } ) ; }
Add the `undoEnd` extension to the builder.

@param \Illuminate\Database\Eloquent\Builder $builder
@return void
Add the undoEnd extension to the builder .