I need to build a method column
which can called with different arguments type, such like the situation here .
->column('herald','style')
->column('herald','style','styleText')
->column('herald',['kind','style'])
->column('herald',['kind','style'],['kindText','styleText'])
->column('item',['kind','style'],false)
->column('item',['kind','style'],['kindText','styleText'],false)
->column('herald_style','style',false)
->column('herald_style','style','styleText',false)
I just want the function can be called clearly ,to overwrite like the Java do, and I have been tried using the func_get_args()
to handle the arguments one by one, but it`s seem worse..
Is that have any way to do ?