Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR: removed incorrect getter/setter statements.

  • Loading branch information...
commit 01b08a57c04730b35f26ba9b6ef4d27c47bd2285 1 parent cc59eff
@wilr wilr authored
Showing with 0 additions and 16 deletions.
  1. +0 −16 docs/en/misc/coding-conventions.md
View
16 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
Please sign in to comment.
Something went wrong with that request. Please try again.