Isn't this method signature incompatible to the interface? You added the `$class` parameter here which is not part of the interface method signature. This is weird.