1 <?php
2 /**
3 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
4 */
5 namespace Team3\PayU\Communication\Notification;
6
7 use Team3\PayU\Order\Model\OrderInterface;
8 use JMS\Serializer\Annotation as JMS;
9
10 /**
11 * This class is representing notification received from PayU
12 * about any changes in order status.
13 *
14 * Class OrderNotification
15 * @package Team3\PayU\Communication\Notification
16 */
17 class OrderNotification implements NotificationInterface
18 {
19 /**
20 * @var OrderInterface
21 * @JMS\Type("Team3\PayU\Order\Model\Order")
22 * @JMS\SerializedName("order")
23 */
24 private $order;
25
26 /**
27 * @return OrderInterface
28 */
29 public function getOrder()
30 {
31 return $this->order;
32 }
33
34 /**
35 * @param OrderInterface $order
36 *
37 * @return OrderNotification
38 */
39 public function setOrder(OrderInterface $order)
40 {
41 $this->order = $order;
42
43 return $this;
44 }
45 }
46