Code Coverage  | 
     ||||||||||
Classes and Traits  | 
      Functions and Methods  | 
      Lines  | 
     ||||||||
| Total |         | 
      100.00%  | 
      1 / 1  | 
              | 
      100.00%  | 
      2 / 2  | 
      CRAP |         | 
      100.00%  | 
      4 / 4  | 
     
| OrderRetrieveRequest |         | 
      100.00%  | 
      1 / 1  | 
              | 
      100.00%  | 
      2 / 2  | 
      2 |         | 
      100.00%  | 
      4 / 4  | 
     
| __construct(OrderInterface $order) |         | 
      100.00%  | 
      1 / 1  | 
      1 |         | 
      100.00%  | 
      3 / 3  | 
     |||
| getMethod() |         | 
      100.00%  | 
      1 / 1  | 
      1 |         | 
      100.00%  | 
      1 / 1  | 
     |||
| <?php | |
| /** | |
| * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl> | |
| */ | |
| namespace Team3\PayU\Communication\Request; | |
| use Team3\PayU\Order\Model\OrderInterface; | |
| /** | |
| * Used with {@link RequestProcessInterface} will help user to | |
| * know in what state is his order. | |
| * | |
| * Class OrderRetrieveRequest | |
| * @package Team3\PayU\Communication\Request | |
| */ | |
| class OrderRetrieveRequest extends AbstractPayURequest | |
| { | |
| /** | |
| * @param OrderInterface $order | |
| */ | |
| public function __construct(OrderInterface $order) | |
| { | |
| $this->data = $order; | |
| $this->path = sprintf('orders/%s', $order->getPayUOrderId()); | |
| } | |
| /** | |
| * @return string | |
| */ | |
| public function getMethod() | |
| { | |
| return self::METHOD_GET; | |
| } | |
| } |