public function loader($name) { if (method_exists($this, $name)) { $args = array_slice(func_get_args(), 1); return call_user_func_array([$this, $name], $args); } return null; }