From 805844cd325b82b65922ff6176b7923b61a9e360 Mon Sep 17 00:00:00 2001 From: Uryvskiy Dima Date: Fri, 2 Aug 2024 14:44:58 +0300 Subject: [PATCH] Add phpdoc --- lib/RetailCrm/Methods/V5/Orders.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/RetailCrm/Methods/V5/Orders.php b/lib/RetailCrm/Methods/V5/Orders.php index d603904..8ec1b92 100644 --- a/lib/RetailCrm/Methods/V5/Orders.php +++ b/lib/RetailCrm/Methods/V5/Orders.php @@ -12,6 +12,7 @@ namespace RetailCrm\Methods\V5; use RetailCrm\Methods\V4\Orders as Previous; +use RetailCrm\Response\ApiResponse; /** * PHP version 5.4 @@ -32,7 +33,7 @@ trait Orders * @param array $resultOrder result order * @param string $technique combining technique * - * @return \RetailCrm\Response\ApiResponse + * @return ApiResponse */ public function ordersCombine($order, $resultOrder, $technique = 'ours') { @@ -72,7 +73,7 @@ trait Orders * @throws \RetailCrm\Exception\CurlException * @throws \RetailCrm\Exception\InvalidJsonException * - * @return \RetailCrm\Response\ApiResponse + * @return ApiResponse */ public function ordersPaymentCreate(array $payment, $site = null) { @@ -100,7 +101,7 @@ trait Orders * @param string $by by key * @param null $site site code * - * @return \RetailCrm\Response\ApiResponse + * @return ApiResponse */ public function ordersPaymentEdit(array $payment, $by = 'id', $site = null) { @@ -134,7 +135,7 @@ trait Orders * * @param string $id payment id * - * @return \RetailCrm\Response\ApiResponse + * @return ApiResponse */ public function ordersPaymentDelete($id) { @@ -162,7 +163,7 @@ trait Orders * @throws \RetailCrm\Exception\CurlException * @throws \RetailCrm\Exception\InvalidJsonException * - * @return \RetailCrm\Response\ApiResponse + * @return ApiResponse */ public function ordersLoyaltyApply(array $order, float $bonuses, $site = null) { @@ -198,6 +199,13 @@ trait Orders ); } + /** + * Create links between orders + * + * @param array $links links data + * + * @return ApiResponse + */ public function ordersLinksCreate(array $links) { if (!count($links)) {