From 05b00ff0d828e10f92ec6384e7e9fdbfc1f8a13e Mon Sep 17 00:00:00 2001 From: Malcolm Fell Date: Sun, 30 Jun 2013 12:42:27 +1200 Subject: [PATCH] Align comments in class --- php.html.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/php.html.markdown b/php.html.markdown index 095c3041..a998134d 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -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