I've got just one question -> is it good to have all parameters defined with default values in a function. I think it is a bad practice but I have a little argument with my colleague.
So is either:
public function getTestByUser($int_user_id, $limit, $offset)
or
public function getTestByUser($int_user_id = 0, $limit = 0, $offset = null)
better / nicer?
And why do you think so.
Thanks in advance.