1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/manual/docs/Coding standards - Coding Style - Classes.php

22 lines
566 B
PHP
Raw Normal View History

2006-10-01 17:58:19 +04:00
<ul>
<li \>Classes must be named by following the naming conventions.
</ul>
<ul>
<li \>The brace is always written right after the class name (or interface declaration).
</ul>
<ul>
<li \>Every class must have a documentation block that conforms to the PHPDocumentor standard.
</ul>
<ul>
<li \>Any code within a class must be indented four spaces.
</ul>
<ul>
<li \>Only one class is permitted per PHP file.
</ul>
<ul>
<li \>Placing additional code in a class file is NOT permitted.
</ul>
This is an example of an acceptable class declaration: