1<documentation title="Constructor name">
2    <standard>
3    <![CDATA[
4    Constructors should be named __construct, not after the class.
5    ]]>
6    </standard>
7    <code_comparison>
8        <code title="Valid: The constructor is named __construct.">
9        <![CDATA[
10class Foo
11{
12    function <em>__construct</em>()
13    {
14    }
15}
16        ]]>
17        </code>
18        <code title="Invalid: The old style class name constructor is used.">
19        <![CDATA[
20class Foo
21{
22    function <em>Foo</em>()
23    {
24    }
25}
26        ]]>
27        </code>
28    </code_comparison>
29</documentation>
30