✏️ 编辑:Search_Orders.php
路径:
/home/forge/woocommerce-square/includes/Gateway/API/Responses/Search_Orders.php
大小:940 B · 修改:2025-12-23 20:26:26 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php namespace WooCommerce\Square\Gateway\API\Responses; defined( 'ABSPATH' ) || exit; /** * The Search Orders API response object. * * @since 5.0.0 * * @method \Square\Models\SearchOrdersResponse get_data() */ class Search_Orders extends \WooCommerce\Square\Gateway\API\Response { /** * Gets the orders from the response. * * @since 5.0.0 * * @return array */ public function get_orders() { return $this->get_data() ? $this->get_data()->getOrders() : array(); } /** * Gets the cursor for pagination. * * @since 5.0.0 * * @return string */ public function get_cursor() { return $this->get_data() ? $this->get_data()->getCursor() : ''; } /** * Gets the response data as an array with orders and cursor. * * @since 5.0.0 * * @return array */ public function get_response_data() { return array( 'orders' => $this->get_orders(), 'cursor' => $this->get_cursor(), ); } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF