private function camelFormat($name) { return preg_replace_callback('~-([a-z])~', function ($matches) { return strtoupper($matches[1]); }, $name); }