Skip to content
This repository
Browse code

MINOR: removed incorrect getter/setter statements.

  • Loading branch information...
commit 01b08a57c04730b35f26ba9b6ef4d27c47bd2285 1 parent cc59eff
Will Rossiter authored

Showing 1 changed file with 0 additions and 16 deletions. Show diff stats Hide diff stats

  1. 16  docs/en/misc/coding-conventions.md
16  docs/en/misc/coding-conventions.md
Source Rendered
@@ -74,22 +74,6 @@ Static variables should be `self::$lowercase_with_underscores`
74 74
 	:::php
75 75
 	self::$my_static_variable = 'foo';
76 76
 
77  
-Wherever possible, set up static variables like this:
78  
-
79  
-	:::php
80  
-	protected static $simple_setting = 50;
81  
-		static function set_simple_setting($v) {self::$simple_setting = $v;}
82  
-		static function get_simple_setting() {return self::$simple_setting;}
83  
-		
84  
-	protected static $more_complex_variable = "default value";
85  
-		static function set_more_complex_variable($v) {self::$more_complex_variable = $v;}
86  
-		
87  
-	static function get_more_complex_variable() {
88  
-		//complex code here;
89  
-		//complex code here;
90  
-	}
91  
-	....
92  
-
93 77
 Object variables should be `$this->lowerCamelCase`
94 78
 
95 79
 	:::php

0 notes on commit 01b08a5

Please sign in to comment.
Something went wrong with that request. Please try again.