Generating the getter, setter procedures for an attribute after which you can passing these as argument to property function I will not down vote but urge Devs to think about this instead of have null / empty checks as part of your property treatments. The variants of 3 such as https://herohomesrealty.in/