protected function formatPhoneMultiMask(string $phone, int $length, string $format): string
    {
        if (7 === $length && 1 === substr_count($format, '-')) {
            return preg_replace('/([0-9]{3})([0-9]{4})/', '$1-$2', $phone);
        } elseif (10 === $length) {
            return $this->formatPhoneTenDigitMask($phone, $format);
        }
    }