I think the local variable `$propertyName` is unnecessary, you can just access `$constraint->property` everywhere.