Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
3 / 3 |
| OrderCreateRequest | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
| __construct(OrderInterface $order) | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
| <?php | |
| /** | |
| * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl> | |
| */ | |
| namespace Team3\PayU\Communication\Request; | |
| use Team3\PayU\Order\Model\OrderInterface; | |
| /** | |
| * This class can be used with {@link RequestProcessInterface}. | |
| * It will create new order. | |
| * | |
| * Class OrderCreateRequest | |
| * @package Team3\PayU\Communication\Request | |
| */ | |
| class OrderCreateRequest extends AbstractPayURequest | |
| { | |
| /** | |
| * @param OrderInterface $order | |
| */ | |
| public function __construct(OrderInterface $order) | |
| { | |
| $this->data = $order; | |
| $this->path = 'orders'; | |
| } | |
| } |