* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\PrestaShop\Adapter\Order; use Order; use PrestaShop\PrestaShop\Core\Order\OrderSiblingProviderInterface; class OrderSiblingProvider implements OrderSiblingProviderInterface { /** * {@inheritdoc} */ public function getNextOrderId(int $orderId): int { $order = new Order($orderId); return (int) $order->getNextOrderId(); } /** * {@inheritdoc} */ public function getPreviousOrderId(int $orderId): int { $order = new Order($orderId); return (int) $order->getPreviousOrderId(); } }