12-02-2019, 09:47 PM
I’m the future add some comments comments above a function or class. It will make it a lot easier to debug your code, and for other people in the future to help.
/**
* Name and description
* @param namOfParameter.
* @return nameOfWhatsBeingReturned
*/
Don’t use the underscore text thing your doing when declaring constants it read only variables. Should be PascalCasing in your code. I didn’t see this here but don’t use underscores in identifiers, unless it’s private then you can have a leading underscore.
Also good use of an enumeration
/**
* Name and description
* @param namOfParameter.
* @return nameOfWhatsBeingReturned
*/
Don’t use the underscore text thing your doing when declaring constants it read only variables. Should be PascalCasing in your code. I didn’t see this here but don’t use underscores in identifiers, unless it’s private then you can have a leading underscore.
Also good use of an enumeration