mirror of
https://github.com/php/php-src.git
synced 2026-04-27 18:23:26 +02:00
Private members don't have to be functions.
This commit is contained in:
@@ -129,11 +129,12 @@ and each letter that starts a new "word" is capitalized. Some examples:
|
||||
|
||||
connect() getData() buildSomeWidget()
|
||||
|
||||
Private methods (meaning methods that an intented to be called only from
|
||||
within the same class; PHP does not yet support truly-enforceable private
|
||||
namespaces) are preceeded by a single underscore. For example:
|
||||
Private class members (meaning class members that an intented to be used
|
||||
only from within the same class in which they are declared; PHP does not yet
|
||||
support truly-enforceable private namespaces) are preceeded by a single
|
||||
underscore. For example:
|
||||
|
||||
_sort() _initTree() _validateInput()
|
||||
_sort() _initTree() $_status
|
||||
|
||||
|
||||
------------
|
||||
|
||||
Reference in New Issue
Block a user