Getters and setters
ID | FCNS-6 |
Title | Minimize the use of Getters and Setters. |
Priority | Strongly recommended |
Severity level | 5 |
Description | Do not write methods using the get.<property> and set.<property> syntax. Write explicit methods for getting or setting property values if necessary. |
Rationale | Property getters and setters can cause unexpected behaviour because code is run unexpectedly when the property's value is changed or requested. |