setter-getter
Decorator which checks whether the function is called with the correct type of parameters.