this is not neccesary, I would pass the `$type` and `$property`, you can get the declaring class using `$property->getDeclaringClass()`