@@ 155-159 (lines=5) @@ | ||
152 | // temporarily set this as a public property. However, we can't do this |
|
153 | // for properties that the class has declared, because otherwise it would |
|
154 | // be possible to modify and then unset protected class properties. |
|
155 | if ( ! $is_protected_property ) { |
|
156 | $this->allow_set = true; |
|
157 | $this->$var = $sub; |
|
158 | $this->allow_set = false; |
|
159 | } |
|
160 | ||
161 | /** |
|
162 | * Initialization of an app registry. |
|
@@ 183-187 (lines=5) @@ | ||
180 | ); |
|
181 | } |
|
182 | ||
183 | if ( ! $is_protected_property ) { |
|
184 | $this->allow_set = true; |
|
185 | unset( $this->$var ); |
|
186 | $this->allow_set = false; |
|
187 | } |
|
188 | ||
189 | $this->did_init[ $var ] = true; |
|
190 | } |