/** * @param $name */ public function __unset($name) { if (method_exists($this, $func = 'set' . ucfirst($name))) { call_user_func([$this, $func], null); } elseif (method_exists($this, $func = 'set' . StringTools::underscoreToCamel($name))) { call_user_func([$this, $func], null); } }