1.0.2 • Published 5 years ago

batch-getter-setter v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

BatchGetterSetter is an abstract class with no properties of its own and one protected method: _createGetterAndOrSetterForEach(). If you have a bunch of properties you want to create getter and/or setter functions for, and they will all use the same repetitive code, place the names of each property in an array of strings and pass that array into _createGetterAndOrSetterForEach(properties, configuration). The configuration parameter is an object that you place a getter and/or setter function inside of. This will be the repetitive code called for each property. Check the GetterSetterConfiguration interface for more info.