File "ConstructorNameStandard.xml"

Full Path: /home/warrior1/public_html/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/ConstructorNameStandard.xml
File size: 577 bytes
MIME-type: text/plain
Charset: utf-8

<documentation title="Constructor name">
    <standard>
    <![CDATA[
    Constructors should be named __construct, not after the class.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: The constructor is named __construct.">
        <![CDATA[
class Foo
{
    function <em>__construct</em>()
    {
    }
}
        ]]>
        </code>
        <code title="Invalid: The old style class name constructor is used.">
        <![CDATA[
class Foo
{
    function <em>Foo</em>()
    {
    }
}
        ]]>
        </code>
    </code_comparison>
</documentation>