From 57c75aa350ca04836fafa4157184ea412b0d2ecd Mon Sep 17 00:00:00 2001 From: thibdrev Date: Mon, 17 Jun 2024 13:22:47 +0200 Subject: [PATCH] qual: phpdoc for htdocs/variants/class/ProductAttributeValue.class.php (#30050) * qual: phpdoc for htdocs/variants/class/ProductAttributeValue.class.php htdocs/variants/class/ProductAttributeValue.class.php 78 Plugin PhanPluginUnknownPropertyType Property \ProductAttributeValue->id has an initial type that cannot be inferred htdocs/variants/class/ProductAttributeValue.class.php 79 Plugin PhanPluginUnknownPropertyType Property \ProductAttributeValue->fk_product_attribute has an initial type that cannot be inferred htdocs/variants/class/ProductAttributeValue.class.php 80 Plugin PhanPluginUnknownPropertyType Property \ProductAttributeValue->ref has an initial type that cannot be inferred htdocs/variants/class/ProductAttributeValue.class.php 81 Plugin PhanPluginUnknownPropertyType Property \ProductAttributeValue->value has an initial type that cannot be inferred htdocs/variants/class/ProductAttributeValue.class.php 82 Plugin PhanPluginUnknownPropertyType Property \ProductAttributeValue->position has an initial type that cannot be inferred * phpcs * better wording * phpcs --- .../class/ProductAttributeValue.class.php | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/htdocs/variants/class/ProductAttributeValue.class.php b/htdocs/variants/class/ProductAttributeValue.class.php index e8e71f5a671..b3a2cb71b38 100644 --- a/htdocs/variants/class/ProductAttributeValue.class.php +++ b/htdocs/variants/class/ProductAttributeValue.class.php @@ -75,10 +75,35 @@ class ProductAttributeValue extends CommonObjectLine 'value' => array('type' => 'varchar(255)', 'label' => 'Value', 'enabled' => 1, 'position' => 30, 'notnull' => 1, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'help' => "", 'showoncombobox' => 1,), 'position' => array('type' => 'integer', 'label' => 'Rank', 'enabled' => 1, 'visible' => 0, 'default' => '0', 'position' => 200, 'notnull' => 1,), ); + + /** + * ID of the ProductAttributeValue + * @var int + */ public $id; + + /** + * ID of the parent attribute (ex: ID of the attribute "COLOR") + * @var int + */ public $fk_product_attribute; + + /** + * Reference of the ProductAttributeValue (ex: "BLUE_1" or "RED_3") + * @var string + */ public $ref; + + /** + * Label of the ProductAttributeValue (ex: "Dark blue" or "Chili Red") + * @var string + */ public $value; + + /** + * Sorting position of the ProductAttributeValue + * @var int + */ public $position; /**