Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
wp-content
/
themes
/
storefront
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Generic
/
Docs
/
NamingConventions
:
ConstructorNameStandard.xml
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<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>