aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/commerceguys/intl/src/NumberFormat/NumberFormatEntityInterface.php
blob: debafd6ba6cf1fb07d62f9e408dd407a4cd0c018 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php

namespace CommerceGuys\Intl\NumberFormat;

interface NumberFormatEntityInterface extends NumberFormatInterface
{
    /**
     * Sets the locale.
     *
     * @param string $locale The locale (i.e. "en_US").
     *
     * @return self
     */
    public function setLocale($locale);

    /**
     * Sets the numbering system.
     *
     * @param string $numberingSystem One of the NUMBERING_SYSTEM_ constants.
     *
     * @return self
     */
    public function setNumberingSystem($numberingSystem);

    /**
     * Sets the decimal separator.
     *
     * @param string $decimalSeparator
     *
     * @return self
     */
    public function setDecimalSeparator($decimalSeparator);

    /**
     * Sets the grouping separator.
     *
     * @param string $groupingSeparator
     *
     * @return self
     */
    public function setGroupingSeparator($groupingSeparator);

    /**
     * Sets the plus sign.
     *
     * @param string $plusSign
     *
     * @return self
     */
    public function setPlusSign($plusSign);

    /**
     * Sets the minus sign.
     *
     * @param string $minusSign
     *
     * @return self
     */
    public function setMinusSign($minusSign);

    /**
     * Sets the percent sign.
     *
     * @param string $percentSign
     *
     * @return self
     */
    public function setPercentSign($percentSign);

    /**
     * Sets the number pattern used to format decimal numbers.
     *
     * @param string $decimalPattern The decimal pattern.
     *
     * @return self
     */
    public function setDecimalPattern($decimalPattern);

    /**
     * Sets the number pattern used to format percentages.
     *
     * @param string $percentPattern The percent pattern.
     *
     * @return self
     */
    public function setPercentPattern($percentPattern);

    /**
     * Sets the number pattern used to format currency amounts.
     *
     * @param string $currencyPattern The currency pattern.
     *
     * @return self
     */
    public function setCurrencyPattern($currencyPattern);

    /**
     * Sets the number pattern used to format accounting currency amounts.
     *
     * Most commonly used when formatting amounts on invoices.
     *
     * @param string $accountingCurrencyPattern The accounting currency pattern.
     *
     * @return self
     */
    public function setAccountingCurrencyPattern($accountingCurrencyPattern);
}