14
14
* Customer address view model.
15
15
*/
16
16
17
+ /**
18
+ * Address view model
19
+ */
17
20
class Address implements ArgumentInterface
18
21
{
19
22
/**
@@ -31,43 +34,75 @@ class Address implements ArgumentInterface
31
34
private $ helperAddress ;
32
35
33
36
/**
34
- * @param Data $helperData
35
- * @param Address $helperAddress
37
+ * Constructor
38
+ *
39
+ * @param DataHelper $helperData
40
+ * @param AddressHelper $helperAddress
36
41
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
37
42
*/
38
43
public function __construct (
39
- Data $ helperData ,
40
- Address $ helperAddress
44
+ DataHelper $ helperData ,
45
+ AddressHelper $ helperAddress
41
46
) {
42
47
$ this ->helperData = $ helperData ;
43
48
$ this ->helperAddress = $ helperAddress ;
44
49
}
45
50
51
+ /**
52
+ * Returns data validation class
53
+ *
54
+ * @return mixed
55
+ */
46
56
public function dataGetAttributeValidationClass ($ param )
47
57
{
48
- return $ this ->dataAddress ->getAttributeValidationClass ($ param );
58
+ return $ this ->helperData ->getAttributeValidationClass ($ param );
49
59
}
50
60
61
+ /**
62
+ * Returns address validation class
63
+ *
64
+ * @return mixed
65
+ */
51
66
public function addressGetAttributeValidationClass ($ param )
52
67
{
53
68
return $ this ->helperAddress ->getAttributeValidationClass ($ param );
54
69
}
55
70
71
+ /**
72
+ * Returns street lines
73
+ *
74
+ * @return mixed
75
+ */
56
76
public function addressGetStreetLines ()
57
77
{
58
78
return $ this ->helperAddress ->getStreetLines ();
59
79
}
60
80
81
+ /**
82
+ * Returns if VAT attribute is visible
83
+ *
84
+ * @return boolean
85
+ */
61
86
public function addressIsVatAttributeVisible ()
62
87
{
63
88
return $ this ->helperAddress ->isVatAttributeVisible ();
64
89
}
65
90
91
+ /**
92
+ * Returns region JSON
93
+ *
94
+ * @return mixed
95
+ */
66
96
public function dataGetRegionJson ()
67
97
{
68
98
return $ this ->helperData ->getRegionJson ();
69
99
}
70
100
101
+ /**
102
+ * Returns rcountries with optional zip
103
+ *
104
+ * @return mixed
105
+ */
71
106
public function dataGetCountriesWithOptionalZip ()
72
107
{
73
108
return $ this ->helperData ->getCountriesWithOptionalZip ();
0 commit comments