1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/manual/docs/Coding standards - Coding Style - Classes.php
2007-04-13 21:49:11 +00:00

31 lines
615 B
PHP

* 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
}