1 <?php
2 /**
3 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
4 */
5 namespace Team3\PayU\Communication\Request;
6
7 use Team3\PayU\Order\Model\OrderInterface;
8
9 /**
10 * Used with {@link RequestProcessInterface} will help user to
11 * know in what state is his order.
12 *
13 * Class OrderRetrieveRequest
14 * @package Team3\PayU\Communication\Request
15 */
16 class OrderRetrieveRequest extends AbstractPayURequest
17 {
18 /**
19 * @param OrderInterface $order
20 */
21 public function __construct(OrderInterface $order)
22 {
23 $this->data = $order;
24 $this->path = sprintf('orders/%s', $order->getPayUOrderId());
25 }
26
27 /**
28 * @return string
29 */
30 public function getMethod()
31 {
32 return self::METHOD_GET;
33 }
34 }
35