From dc84665ec23f4b72a912828d2e3d1e3f1a482131 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Wed, 7 Sep 2011 13:08:54 +1200 Subject: [PATCH] MINOR: removed incorrect getter/setter statements. --- docs/en/misc/coding-conventions.md | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/docs/en/misc/coding-conventions.md b/docs/en/misc/coding-conventions.md index 6b32b14b2..2ba87adc7 100644 --- a/docs/en/misc/coding-conventions.md +++ b/docs/en/misc/coding-conventions.md @@ -74,22 +74,6 @@ Static variables should be `self::$lowercase_with_underscores` :::php self::$my_static_variable = 'foo'; -Wherever possible, set up static variables like this: - - :::php - protected static $simple_setting = 50; - static function set_simple_setting($v) {self::$simple_setting = $v;} - static function get_simple_setting() {return self::$simple_setting;} - - protected static $more_complex_variable = "default value"; - static function set_more_complex_variable($v) {self::$more_complex_variable = $v;} - - static function get_more_complex_variable() { - //complex code here; - //complex code here; - } - .... - Object variables should be `$this->lowerCamelCase` :::php