Pear coding standards doubt

Following Pear Coding Standards :

  • Should I use _before private methods or only for private properties?
  • Should I use methodNameor method_namefor methods?
  • Should I use public $fooBaror public $foo_bar?

Thank.

+3
source share
1 answer

Should I use _before private methods or only for private properties?

Use _in front of all private user names. This includes properties and methods.

Should I use methodNameor method_namefor methods?

( methodName).

"public $fooBar" "public $foo_bar"?

( $foo_bar).

" " PEAR.

+6

Source: https://habr.com/ru/post/1791729/


All Articles