protected function _createHandlerCode() { $code = ''; $methods = lmbReflectionHelper::getMethods($this->_class); $base_methods = lmbReflectionHelper::getMethods($this->_decorator_base); foreach ($methods as $method) { if ($this->_isMagicMethod($method)) { continue; } if (in_array($method, $base_methods)) { continue; } $code .= " " . lmbReflectionHelper::getSignature($this->_class, $method) . " {\n"; $code .= " \$args = func_get_args();\n"; $code .= " return \$this->___invoke(\"{$method}\", \$args);\n"; $code .= " }\n"; } return $code; }