Any alternative code for simple assignment

Dear Forum,

In my class I have following simple assignment code.
Can someone please suggest nice alternative code?

function void bae_psi_ifs_api::SLOT_EN (bit enable0, enable1, enable2, enable3);	
		cfg[0].slot_enable = enable0;
		cfg[1].slot_enable = enable1;
		cfg[2].slot_enable = enable2;
		cfg[3].slot_enable = enable3;
endfunction

I tried generate statement with macro, but generate cannot be used in the class.

Thanks

In reply to haykp:

You are always at a disadvantage creating a set of signal names versus one name that is an array. Why not do

function void bae_psi_ifs_api::SLOT_EN (bit enable[4]);	
		foreach(enable[i]cfg[i].slot_enable = enable[i];
endfunction