aboutsummaryrefslogtreecommitdiffstats
path: root/library/intl/src/NumberFormat/NumberFormatRepositoryInterface.php
blob: ff162b522e3da02e744a59842e7bdec3384d8d8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace CommerceGuys\Intl\NumberFormat;

/**
 * Number format repository interface.
 */
interface NumberFormatRepositoryInterface
{
    /**
     * Returns a number format instance for the provided locale.
     *
     * @param string $locale         The locale (i.e. fr-FR).
     * @param string $fallbackLocale A fallback locale (i.e "en").
     *
     * @return NumberFormatInterface
     */
    public function get($locale, $fallbackLocale = null);
}