1<documentation title="Property Declarations">
2    <standard>
3    <![CDATA[
4    Property names should not be prefixed with an underscore to indicate visibility.  Visibility should be used to declare properties rather than the var keyword.  Only one property should be declared within a statement.
5    ]]>
6    </standard>
7    <code_comparison>
8        <code title="Valid: Correct property naming.">
9        <![CDATA[
10class Foo
11{
12    private $<em>bar</em>;
13}
14        ]]>
15        </code>
16        <code title="Invalid: An underscore prefix used to indicate visibility.">
17        <![CDATA[
18class Foo
19{
20    private $<em>_bar</em>;
21}
22        ]]>
23        </code>
24    </code_comparison>
25    <code_comparison>
26        <code title="Valid: Visibility of property declared.">
27        <![CDATA[
28class Foo
29{
30    <em>private</em> $bar;
31}
32        ]]>
33        </code>
34        <code title="Invalid: Var keyword used to declare property.">
35        <![CDATA[
36class Foo
37{
38    <em>var</em> $bar;
39}
40        ]]>
41        </code>
42    </code_comparison>
43    <code_comparison>
44        <code title="Valid: One property declared per statement.">
45        <![CDATA[
46class Foo
47{
48    private $bar;
49    private $baz;
50}
51        ]]>
52        </code>
53        <code title="Invalid: Multiple properties declared in one statement.">
54        <![CDATA[
55class Foo
56{
57    private <em>$bar, $baz</em>;
58}
59        ]]>
60        </code>
61    </code_comparison>
62</documentation>
63