File tree 3 files changed +24
-9
lines changed
app/code/Magento/Sales/Model/Order/Address
lib/internal/Magento/Framework/Locale
3 files changed +24
-9
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ class Validator
48
48
49
49
/**
50
50
* @param DirectoryHelper $directoryHelper
51
- * @param CountryFactory $countryFactory
52
- * @param EavConfig $eavConfig
51
+ * @param CountryFactory $countryFactory
52
+ * @param EavConfig $eavConfig
53
53
*/
54
54
public function __construct (
55
55
DirectoryHelper $ directoryHelper ,
@@ -195,23 +195,32 @@ protected function isStateRequired($countryId)
195
195
}
196
196
197
197
/**
198
+ * Check whether telephone is required for address.
199
+ *
198
200
* @return bool
201
+ * @throws \Magento\Framework\Exception\LocalizedException
199
202
*/
200
203
protected function isTelephoneRequired ()
201
204
{
202
205
return ($ this ->eavConfig ->getAttribute ('customer_address ' , 'telephone ' )->getIsRequired ());
203
206
}
204
207
205
208
/**
209
+ * Check whether company is required for address.
210
+ *
206
211
* @return bool
212
+ * @throws \Magento\Framework\Exception\LocalizedException
207
213
*/
208
214
protected function isCompanyRequired ()
209
215
{
210
216
return ($ this ->eavConfig ->getAttribute ('customer_address ' , 'company ' )->getIsRequired ());
211
217
}
212
218
213
219
/**
220
+ * Check whether fax is required for address.
221
+ *
214
222
* @return bool
223
+ * @throws \Magento\Framework\Exception\LocalizedException
215
224
*/
216
225
protected function isFaxRequired ()
217
226
{
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Framework \Locale ;
7
7
8
+ /**
9
+ * Price locale format.
10
+ */
8
11
class Format implements \Magento \Framework \Locale \FormatInterface
9
12
{
10
13
/**
Original file line number Diff line number Diff line change 9
9
use Magento \Framework \App \DeploymentConfig ;
10
10
use Magento \Framework \App \ObjectManager ;
11
11
12
+ /**
13
+ * Manages locale config information.
14
+ */
12
15
class Resolver implements ResolverInterface
13
16
{
14
17
/**
@@ -76,15 +79,15 @@ public function __construct(
76
79
}
77
80
78
81
/**
79
- * { @inheritdoc}
82
+ * @inheritdoc
80
83
*/
81
84
public function getDefaultLocalePath ()
82
85
{
83
86
return $ this ->defaultLocalePath ;
84
87
}
85
88
86
89
/**
87
- * { @inheritdoc}
90
+ * @inheritdoc
88
91
*/
89
92
public function setDefaultLocale ($ locale )
90
93
{
@@ -93,7 +96,7 @@ public function setDefaultLocale($locale)
93
96
}
94
97
95
98
/**
96
- * { @inheritdoc}
99
+ * @inheritdoc
97
100
*/
98
101
public function getDefaultLocale ()
99
102
{
@@ -111,7 +114,7 @@ public function getDefaultLocale()
111
114
}
112
115
113
116
/**
114
- * { @inheritdoc}
117
+ * @inheritdoc
115
118
*/
116
119
public function setLocale ($ locale = null )
117
120
{
@@ -124,7 +127,7 @@ public function setLocale($locale = null)
124
127
}
125
128
126
129
/**
127
- * { @inheritdoc}
130
+ * @inheritdoc
128
131
*/
129
132
public function getLocale ()
130
133
{
@@ -135,7 +138,7 @@ public function getLocale()
135
138
}
136
139
137
140
/**
138
- * { @inheritdoc}
141
+ * @inheritdoc
139
142
*/
140
143
public function emulate ($ scopeId )
141
144
{
@@ -155,7 +158,7 @@ public function emulate($scopeId)
155
158
}
156
159
157
160
/**
158
- * { @inheritdoc}
161
+ * @inheritdoc
159
162
*/
160
163
public function revert ()
161
164
{
You can’t perform that action at this time.
0 commit comments