Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
3 / 3
OrderNotification
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
3 / 3
 getOrder()
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 setOrder(OrderInterface $order)
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
<?php
/**
 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
 */
namespace Team3\PayU\Communication\Notification;
use Team3\PayU\Order\Model\OrderInterface;
use JMS\Serializer\Annotation as JMS;
/**
 * This class is representing notification received from PayU
 * about any changes in order status.
 *
 * Class OrderNotification
 * @package Team3\PayU\Communication\Notification
 */
class OrderNotification implements NotificationInterface
{
    /**
     * @var OrderInterface
     * @JMS\Type("Team3\PayU\Order\Model\Order")
     * @JMS\SerializedName("order")
     */
    private $order;
    /**
     * @return OrderInterface
     */
    public function getOrder()
    {
        return $this->order;
    }
    /**
     * @param OrderInterface $order
     *
     * @return OrderNotification
     */
    public function setOrder(OrderInterface $order)
    {
        $this->order = $order;
        return $this;
    }
}