Just asking out of curiosity here…
I have a custom event listener that saves about 10 different passed in values, and so I have 10 different “getter” functions that return those values.
I don’t want to make the variables public because that’s bad OOP.
But… I would like to consolidate all of these “getter” functions into one “getter” function, if possible.
The problem I’m running into is that I need to set the function return value to a “getter” function. Example:
public function someFunction():Boolean {
return someInstanceBooleanValue;
}
I want to do this for type checking purposes so I can guard against erroneous assignments…
Thoughts?