8
8
9
9
use Magento \Framework \DataObject \IdentityInterface ;
10
10
use Magento \Framework \Pricing \Amount \AmountInterface ;
11
- use Magento \Framework \Pricing \SaleableInterface ;
12
11
use Magento \Framework \Pricing \Price \PriceInterface ;
12
+ use Magento \Framework \Pricing \SaleableInterface ;
13
13
use Magento \Framework \View \Element \Template ;
14
14
15
15
/**
@@ -39,11 +39,11 @@ class PriceBox extends Template implements PriceBoxRenderInterface, IdentityInte
39
39
protected $ rendererPool ;
40
40
41
41
/**
42
- * @param Template\Context $context
42
+ * @param Template\Context $context
43
43
* @param SaleableInterface $saleableItem
44
- * @param PriceInterface $price
45
- * @param RendererPool $rendererPool
46
- * @param array $data
44
+ * @param PriceInterface $price
45
+ * @param RendererPool $rendererPool
46
+ * @param array $data
47
47
*/
48
48
public function __construct (
49
49
Template \Context $ context ,
@@ -59,7 +59,7 @@ public function __construct(
59
59
}
60
60
61
61
/**
62
- * @return string
62
+ * @inheritdoc
63
63
*/
64
64
protected function _toHtml ()
65
65
{
@@ -70,35 +70,31 @@ protected function _toHtml()
70
70
}
71
71
72
72
/**
73
- * Get Key for caching block content
74
- *
75
- * @return string
73
+ * @inheritdoc
76
74
*/
77
75
public function getCacheKey ()
78
76
{
79
77
return parent ::getCacheKey () . '- ' . $ this ->getPriceId () . '- ' . $ this ->getPrice ()->getPriceCode ();
80
78
}
81
79
82
80
/**
83
- * Get block cache life time
84
- *
85
- * @return int
81
+ * @inheritdoc
86
82
*/
87
83
protected function getCacheLifetime ()
88
84
{
89
85
return parent ::hasCacheLifetime () ? parent ::getCacheLifetime () : self ::DEFAULT_LIFETIME ;
90
86
}
91
-
87
+
92
88
/**
93
- * @return SaleableInterface
89
+ * @inheritdoc
94
90
*/
95
91
public function getSaleableItem ()
96
92
{
97
93
return $ this ->saleableItem ;
98
94
}
99
95
100
96
/**
101
- * @return PriceInterface
97
+ * @inheritdoc
102
98
*/
103
99
public function getPrice ()
104
100
{
@@ -136,9 +132,7 @@ public function getPriceType($priceCode)
136
132
}
137
133
138
134
/**
139
- * @param AmountInterface $amount
140
- * @param array $arguments
141
- * @return string
135
+ * @inheritdoc
142
136
*/
143
137
public function renderAmount (AmountInterface $ amount , array $ arguments = [])
144
138
{
@@ -149,6 +143,8 @@ public function renderAmount(AmountInterface $amount, array $arguments = [])
149
143
}
150
144
151
145
/**
146
+ * Get amount render.
147
+ *
152
148
* @param AmountInterface $amount
153
149
* @param array $arguments
154
150
* @return AmountRenderInterface
@@ -164,6 +160,8 @@ protected function getAmountRender(AmountInterface $amount, array $arguments = [
164
160
}
165
161
166
162
/**
163
+ * Get renderer pool.
164
+ *
167
165
* @return RendererPool
168
166
*/
169
167
public function getRendererPool ()
@@ -172,9 +170,7 @@ public function getRendererPool()
172
170
}
173
171
174
172
/**
175
- * Return unique ID(s) for each object in system
176
- *
177
- * @return array
173
+ * @inheritdoc
178
174
*/
179
175
public function getIdentities ()
180
176
{
0 commit comments