Coding standards - Coding Style - Classes.php 615 Bytes
Newer Older
hansbrix's avatar
hansbrix committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

* Classes must be named by following the naming conventions.


* The brace is always written right after the class name (or interface declaration).


* Every class must have a documentation block that conforms to the PHPDocumentor standard.


* Any code within a class must be indented four spaces.


* Only one class is permitted per PHP file.


* Placing additional code in a class file is NOT permitted. 

This is an example of an acceptable class declaration:



<code type="php">
/**
 * Documentation here
 */
class Doctrine_SampleClass {
    // entire content of class
    // must be indented four spaces
}