ConstructorName
Bans PHP 4 style constructors.
Favour PHP 5 constructor syntax, which uses "function __construct()". Avoid PHP 4 constructor syntax, which uses "function ClassName()".
Scope
Generic.NamingConventions.ConstructorName
Description
Constructors should be named __construct, not after the class.
Usage
xml
<rule ref="Generic.NamingConventions.ConstructorName"></rule>
Examples
No Examples Available
Please edit this page through Github to add examples.