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%
4 / 4
RefundRequest
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
4 / 4
 __construct(RefundRequestModel $refundRequestModel)
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
 getMethod()
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
/**
 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
 */
namespace Team3\PayU\Communication\Request;
use Team3\PayU\Communication\Request\Model\RefundRequestModel;
class RefundRequest extends AbstractPayURequest
{
    /**
     * @param RefundRequestModel $refundRequestModel
     */
    public function __construct(RefundRequestModel $refundRequestModel)
    {
        $this->data = $refundRequestModel;
        $this->path = sprintf('orders/%s/refund', $this->data->getOrderId());
    }
    /**
     * @return string
     */
    public function getMethod()
    {
        return self::METHOD_POST;
    }
}