It is true that the property $key is an object, but in a world where basically everything is an object, saying that something is an object only is pointless. We should document the class name of the object or interface instead. I don't even see the type of $key by looking at the code right now. Is it Crypt_RSA?