1 | <?php |
||
28 | class SummaryPage extends SymfonyPage implements SummaryPageInterface |
||
29 | { |
||
30 | /** |
||
31 | * @var TableAccessorInterface |
||
32 | */ |
||
33 | private $tableAccessor; |
||
34 | |||
35 | /** |
||
36 | * @param Session $session |
||
37 | * @param array $parameters |
||
38 | * @param RouterInterface $router |
||
39 | * @param TableAccessorInterface $tableAccessor |
||
40 | */ |
||
41 | public function __construct( |
||
51 | |||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function getRouteName() |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function hasItemWithProductAndQuantity($productName, $quantity) |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function hasShippingAddress(AddressInterface $address) |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function hasBillingAddress(AddressInterface $address) |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | public function hasShippingMethod(ShippingMethodInterface $shippingMethod) |
||
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | public function hasPaymentMethod(PaymentMethodInterface $paymentMethod) |
||
120 | |||
121 | /** |
||
122 | * {@inheritdoc} |
||
123 | */ |
||
124 | public function hasProductDiscountedUnitPriceBy(ProductInterface $product, $amount) |
||
139 | |||
140 | /** |
||
141 | * {@inheritdoc} |
||
142 | */ |
||
143 | public function hasOrderTotal($total) |
||
151 | |||
152 | /** |
||
153 | * {@inheritdoc} |
||
154 | */ |
||
155 | public function hasPromotionTotal($promotionTotal) |
||
159 | |||
160 | /** |
||
161 | * {@inheritdoc} |
||
162 | */ |
||
163 | public function hasPromotion($promotionName) |
||
167 | |||
168 | /** |
||
169 | * {@inheritdoc} |
||
170 | */ |
||
171 | public function hasTaxTotal($taxTotal) |
||
175 | |||
176 | /** |
||
177 | * {@inheritdoc} |
||
178 | */ |
||
179 | public function hasShippingTotal($price) |
||
183 | |||
184 | /** |
||
185 | * {@inheritdoc} |
||
186 | */ |
||
187 | protected function getDefinedElements() |
||
203 | |||
204 | /** |
||
205 | * @param ProductInterface $product |
||
206 | * |
||
207 | * @return NodeElement |
||
208 | */ |
||
209 | private function getProductRowElement(ProductInterface $product) |
||
213 | |||
214 | /** |
||
215 | * @param string $displayedAddress |
||
216 | * @param AddressInterface $address |
||
217 | * |
||
218 | * @return bool |
||
219 | */ |
||
220 | private function isAddressValid($displayedAddress, AddressInterface $address) |
||
234 | |||
235 | /** |
||
236 | * @param string $address |
||
237 | * @param string $addressPart |
||
238 | * |
||
239 | * @return bool |
||
240 | */ |
||
241 | private function hasAddressPart($address, $addressPart, $optional = false) |
||
249 | |||
250 | /** |
||
251 | * @param string $countryCode |
||
252 | * |
||
253 | * @return string |
||
254 | */ |
||
255 | private function getCountryName($countryCode) |
||
259 | |||
260 | /** |
||
261 | * @param string $price |
||
262 | * |
||
263 | * @return int |
||
264 | */ |
||
265 | private function getPriceFromString($price) |
||
269 | |||
270 | /** |
||
271 | * @param string $total |
||
272 | * |
||
273 | * @return int |
||
274 | */ |
||
275 | private function getTotalFromString($total) |
||
281 | } |
||
282 |