aboutsummaryrefslogblamecommitdiffstats
path: root/library/intl/src/NumberFormat/NumberFormatRepositoryInterface.php
blob: ff162b522e3da02e744a59842e7bdec3384d8d8a (plain) (tree)


















                                                                  
<?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);
}