In PHP you can do the following thing:
class Something {// bla bla} function functionName(Something $object) { // Do stuff here ^^^^^^^^^ }
You can't typehint scalar types in PHP. The only chance is to use a wrapper type. The SPL library ships with SplInt for that purpose.
Update: Looks like PHP 7 offers that feature. Sigh, times changed :)