@@ 12-18 (lines=7) @@ | ||
9 | use vsc\ExceptionUnimplemented; |
|
10 | ||
11 | abstract class BaseObject { |
|
12 | public function __call($sMethodName, $aVars) { |
|
13 | if (vsc::getEnv()->isDevelopment()) { |
|
14 | throw new ExceptionUnimplemented('Method [' . get_class($this) . '::' . $sMethodName . '] not implemented for calling.'); |
|
15 | } else { |
|
16 | return new Base(); |
|
17 | } |
|
18 | } |
|
19 | ||
20 | public static function __callStatic($sMethodName, $aVars) { |
|
21 | if (vsc::getEnv()->isDevelopment()) { |
|
@@ 20-26 (lines=7) @@ | ||
17 | } |
|
18 | } |
|
19 | ||
20 | public static function __callStatic($sMethodName, $aVars) { |
|
21 | if (vsc::getEnv()->isDevelopment()) { |
|
22 | throw new ExceptionUnimplemented('Method [' . get_class() . '::' . $sMethodName . '] not implemented for calling statically.'); |
|
23 | } else { |
|
24 | return new Base(); |
|
25 | } |
|
26 | } |
|
27 | ||
28 | public function __get($sVarName) { |
|
29 | if (vsc::getEnv()->isDevelopment()) { |
|
@@ 28-34 (lines=7) @@ | ||
25 | } |
|
26 | } |
|
27 | ||
28 | public function __get($sVarName) { |
|
29 | if (vsc::getEnv()->isDevelopment()) { |
|
30 | throw new ExceptionUnimplemented('Property [' . get_class($this) . '::' . $sVarName . '] not implemented for reading.'); |
|
31 | } else { |
|
32 | return new Base(); |
|
33 | } |
|
34 | } |
|
35 | ||
36 | public function __set($sVarName, $mValue) { |
|
37 | if (vsc::getEnv()->isDevelopment()) { |