3 ms·
I didn't understand this: 4.2. Properties This guide intentionally avoids any recommendation regarding the use of $StudlyCaps, $camelCase, or $un
by jimmytucson 14y ago
I didn't understand this:
4.2. Properties
This guide intentionally avoids any recommendation regarding the use of
$StudlyCaps, $camelCase, or $under_score property names.
Whatever naming convention is used SHOULD be applied consistently within a
reasonable scope. That scope may be vendor-level, package-level, class-level,
or method-level.
4.3. Methods
Method names MUST be declared in camelCase().
- jasonlotito 14y agoWhat don't you understand specifically? It can't be any clearer, and it's obvious the reasons for this with what the PSR is. So, I'm confused as to what you find confusing?
- RobAtticus 14y agoMethods should be camelCase(), but properties (fields?) can be any convention as long as its consistent throughout.
- jimmytucson 14y agoYup, that's my basic reading comprehension dropping out again. Thank you, that does make sense.
- ecocentrik 14y agoIt looks clear to me. Properties refer to object properties or variables and Methods refer to object methods or functions. This standard recommends three formating conventions for variable names and requires that all functions be written in camelCase.