Navigation Menu

Skip to content

Commit

Permalink
add note about underscore-preixed properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed May 10, 2012
1 parent dca8fc2 commit d05236c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proposed/PSR-2-advanced.md
Expand Up @@ -168,6 +168,10 @@ class ClassName extends ParentClass implements
Declare visibility on all properties. Do not use `var` to declare a property.
Declare only one property per statement.

> N.b. Some projects prefix property names with a single underscore to indicate
> protected or private visibility. This guide discourages but does not
> disallow that practice.
A property declaration looks like the following.

```php
Expand Down

0 comments on commit d05236c

Please sign in to comment.