1<documentation title="Method Declarations">
2    <standard>
3    <![CDATA[
4    Method names should not be prefixed with an underscore to indicate visibility.  The static keyword, when present, should come after the visibility declaration, and the final and abstract keywords should come before.
5    ]]>
6    </standard>
7    <code_comparison>
8        <code title="Valid: Correct method naming.">
9        <![CDATA[
10class Foo
11{
12    private function <em>bar</em>()
13    {
14    }
15}
16        ]]>
17        </code>
18        <code title="Invalid: An underscore prefix used to indicate visibility.">
19        <![CDATA[
20class Foo
21{
22    private function <em>_bar</em>()
23    {
24    }
25}
26        ]]>
27        </code>
28    </code_comparison>
29    <code_comparison>
30        <code title="Valid: Correct ordering of method prefixes.">
31        <![CDATA[
32class Foo
33{
34    <em>final public static</em> function <em>bar</em>()
35    {
36    }
37}
38        ]]>
39        </code>
40        <code title="Invalid: static keyword used before visibility and final used after.">
41        <![CDATA[
42class Foo
43{
44    <em>static public final</em> function <em>bar</em>()
45    {
46    }
47}
48        ]]>
49        </code>
50    </code_comparison>
51</documentation>
52