From 3a94290ef7de2d046447b30bb4b8b90ff43484af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 20 Feb 2023 20:43:23 +0100 Subject: [PATCH] doc --- .../class/ProductCombination.class.php | 22 ++++++++++++++++++- .../ProductCombination2ValuePair.class.php | 10 +++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/htdocs/variants/class/ProductCombination.class.php b/htdocs/variants/class/ProductCombination.class.php index 23bdfcc9441..42e3bdc1530 100644 --- a/htdocs/variants/class/ProductCombination.class.php +++ b/htdocs/variants/class/ProductCombination.class.php @@ -83,6 +83,16 @@ class ProductCombination */ public $variation_ref_ext = ''; + /** + * @var string error + */ + public $error; + + /** + * @var string[] array of errors + */ + public $errors = array(); + /** * Constructor * @@ -1043,6 +1053,16 @@ class ProductCombinationLevel */ public $variation_price_percentage = false; + /** + * @var string error + */ + public $error; + + /** + * @var string[] array of errors + */ + public $errors = array(); + /** * Constructor * @@ -1114,7 +1134,7 @@ class ProductCombinationLevel /** * Assign vars form an stdclass like sql obj * - * @param int $obj Object resultset + * @param Object $obj Object resultset * @return int <0 KO, >0 OK */ public function fetchFormObj($obj) diff --git a/htdocs/variants/class/ProductCombination2ValuePair.class.php b/htdocs/variants/class/ProductCombination2ValuePair.class.php index 5f4ab8480a5..15c2a11ddd9 100644 --- a/htdocs/variants/class/ProductCombination2ValuePair.class.php +++ b/htdocs/variants/class/ProductCombination2ValuePair.class.php @@ -52,6 +52,16 @@ class ProductCombination2ValuePair */ public $fk_prod_attr_val; + /** + * @var string error + */ + public $error; + + /** + * @var string[] array of errors + */ + public $errors = array(); + /** * Constructor *