mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: removed incorrect getter/setter statements.
This commit is contained in:
parent
79f3d02186
commit
dc84665ec2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user