public static function fromCamelCaseToDashConnection($string)
    {
        $return = preg_replace_callback('/([A-Z])/', function($matches){
            return '-' . ucwords(strtolower($matches[1]));
        }, $string);

        if (substr($return, 0,1) === '-') {
            $return = substr($return, 1, strlen($return));
        }

        return $return;
    }