Align comments in class

This commit is contained in:
Malcolm Fell 2013-06-30 12:42:27 +12:00
parent 6ff39aa318
commit 05b00ff0d8

View File

@ -372,13 +372,14 @@ echo $function_name(1, 2); // => 3
// Classes are defined with the class keyword
class MyClass {
class MyClass
{
const MY_CONST = 'value'; // A constant
static $staticVar = 'static';
// Properties must declare their visibility
public $property = 'public';
public $instanceProp;
private $privprop = 'private'; // Accessible within the class only
private $privprop = 'private'; // Accessible within the class only
protected $protprop = 'protected'; // Accessible within the class and subclasses
// Create a constructor with __construct