File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
class example_child_class extends example_class {
6
6
7
- protected $ example_child_string_property ;
7
+ private $ example_child_string_property ;
8
8
9
9
public function __construct () {
10
10
$ this ->example_child_string_property = uniqid ();
11
11
12
12
parent ::__construct ();
13
13
}
14
14
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ public function get_value ($ property_name ) {
19
+ if (!isset ($ this ->{$ property_name })) {
20
+ return parent ::get_value ($ property_name );
21
+ } else {
22
+ return $ this ->{$ property_name };
23
+ }
24
+ }
25
+
15
26
}
Original file line number Diff line number Diff line change 4
4
5
5
class example_class {
6
6
7
- protected $ example_string_property ;
8
- protected $ example_array_property ;
7
+ private $ example_string_property ;
8
+ private $ example_array_property ;
9
9
10
10
public function __construct () {
11
11
$ this ->example_string_property = uniqid ();
You can’t perform that action at this time.
0 commit comments