PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.22
ووسلام – همگام سازی ووکامرس و باسلام v1.10.22
1.10.22 1.10.21 1.10.19 1.10.20 1.10.18 1.10.17 1.10.15 1.10.14 1.10.13 1.10.12 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.2 1.9.1 1.9.0 1.8.8 All 55 releases
sync-basalam / includes / Jobs / Exceptions / StaleVariationException.php

StaleVariationException.php in ووسلام – همگام سازی ووکامرس و باسلام 1.10.22, at includes/Jobs/Exceptions/StaleVariationException.php

43 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace SyncBasalam\Jobs\Exceptions;
4
5 defined('ABSPATH') || exit;
6
7 /**
8 * A locally stored Basalam variation id no longer exists for the product.
9 *
10 * Keeping this distinct from a general 404 lets the product update service
11 * rebuild only the variation mapping without disconnecting the product.
12 */
13 class StaleVariationException extends NonRetryableException
14 {
15 private $basalamProductId;
16 private $basalamVariationId;
17
18 public function __construct($basalamProductId, $basalamVariationId, \Throwable $previous)
19 {
20 $this->basalamProductId = $basalamProductId;
21 $this->basalamVariationId = $basalamVariationId;
22
23 parent::__construct(
24 'شناسه �
25 تغیر ذخیره‌شده در باسلا�
26 دیگر �
27 عتبر نیست.',
28 404,
29 $previous
30 );
31 }
32
33 public function getBasalamProductId()
34 {
35 return $this->basalamProductId;
36 }
37
38 public function getBasalamVariationId()
39 {
40 return $this->basalamVariationId;
41 }
42 }
43