which PHP function allows a function to require a parameter to be an object?
In your function use [man]is_object[/man] to check whether its object or not.
Also see type hinting.