From db9fbb021b942638b21844bcdddcc18641b52f2a Mon Sep 17 00:00:00 2001 From: Nikolay-Fichter Date: Fri, 14 Apr 2023 16:15:00 +0500 Subject: [PATCH 1/4] task_83453 | Refinement of properties for the filter --- lib/Dto/BindCategoryPropertiesRequestProperties.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Dto/BindCategoryPropertiesRequestProperties.php b/lib/Dto/BindCategoryPropertiesRequestProperties.php index 47aac22..0437ce4 100644 --- a/lib/Dto/BindCategoryPropertiesRequestProperties.php +++ b/lib/Dto/BindCategoryPropertiesRequestProperties.php @@ -58,7 +58,7 @@ class BindCategoryPropertiesRequestProperties implements ModelInterface, ArrayAc */ protected static $openAPITypes = [ 'id' => 'int', - 'is_required' => 'bool' + 'is_required' => 'bool', ]; /** -- GitLab From afb25ed68519212cb45926efd3619c76f26a8c2b Mon Sep 17 00:00:00 2001 From: Nikolay-Fichter Date: Mon, 17 Apr 2023 15:40:50 +0500 Subject: [PATCH 2/4] task_83453 | Refinement of properties for the filter --- lib/Dto/CategoryBoundProperty.php | 43 ++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/lib/Dto/CategoryBoundProperty.php b/lib/Dto/CategoryBoundProperty.php index d69e7d6..d2a0914 100644 --- a/lib/Dto/CategoryBoundProperty.php +++ b/lib/Dto/CategoryBoundProperty.php @@ -73,7 +73,8 @@ class CategoryBoundProperty implements ModelInterface, ArrayAccess 'is_required' => 'bool', 'is_common' => 'bool', 'is_system' => 'bool', - 'is_moderated' => 'bool' + 'is_moderated' => 'bool', + 'sort' => 'integer', ]; /** @@ -98,7 +99,8 @@ class CategoryBoundProperty implements ModelInterface, ArrayAccess 'is_required' => null, 'is_common' => null, 'is_system' => null, - 'is_moderated' => null + 'is_moderated' => null, + 'sort' => null, ]; /** @@ -123,7 +125,8 @@ class CategoryBoundProperty implements ModelInterface, ArrayAccess 'is_required' => false, 'is_common' => false, 'is_system' => false, - 'is_moderated' => false + 'is_moderated' => false, + 'sort' => true, ]; /** @@ -229,7 +232,8 @@ class CategoryBoundProperty implements ModelInterface, ArrayAccess 'is_required' => 'is_required', 'is_common' => 'is_common', 'is_system' => 'is_system', - 'is_moderated' => 'is_moderated' + 'is_moderated' => 'is_moderated', + 'sort' => 'sort', ]; /** @@ -254,7 +258,8 @@ class CategoryBoundProperty implements ModelInterface, ArrayAccess 'is_required' => 'setIsRequired', 'is_common' => 'setIsCommon', 'is_system' => 'setIsSystem', - 'is_moderated' => 'setIsModerated' + 'is_moderated' => 'setIsModerated', + 'sort' => 'setSort', ]; /** @@ -279,7 +284,8 @@ class CategoryBoundProperty implements ModelInterface, ArrayAccess 'is_required' => 'getIsRequired', 'is_common' => 'getIsCommon', 'is_system' => 'getIsSystem', - 'is_moderated' => 'getIsModerated' + 'is_moderated' => 'getIsModerated', + 'sort' => 'getSort', ]; /** @@ -359,6 +365,7 @@ class CategoryBoundProperty implements ModelInterface, ArrayAccess $this->setIfExists('is_common', $data, null); $this->setIfExists('is_system', $data, null); $this->setIfExists('is_moderated', $data, null); + $this->setIfExists('sort', $data, 500); } public function setIfExists(string $variableName, $fields, $defaultValue) @@ -395,6 +402,30 @@ class CategoryBoundProperty implements ModelInterface, ArrayAccess return count($this->listInvalidProperties()) === 0; } + /** + * Gets sort + * + * @return int|null + */ + public function getSort(): ?int + { + return $this->container['sort']; + } + + /** + * Sets sort + * + * @param $sort + * + * @return $this + */ + public function setSort($sort) + { + $this->container['sort'] = $sort; + + return $this; + } + /** * Gets property_id -- GitLab From 10667a2c5a64b1c9cd70d9c08086ae784e0a2626 Mon Sep 17 00:00:00 2001 From: Nikolay-Fichter Date: Tue, 18 Apr 2023 14:30:19 +0500 Subject: [PATCH 3/4] task_83453 | Refinement of properties for the filter --- ...indCategoryPropertiesRequestProperties.php | 41 ++++++++++++++++--- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/lib/Dto/BindCategoryPropertiesRequestProperties.php b/lib/Dto/BindCategoryPropertiesRequestProperties.php index 0437ce4..d1e74bc 100644 --- a/lib/Dto/BindCategoryPropertiesRequestProperties.php +++ b/lib/Dto/BindCategoryPropertiesRequestProperties.php @@ -59,6 +59,7 @@ class BindCategoryPropertiesRequestProperties implements ModelInterface, ArrayAc protected static $openAPITypes = [ 'id' => 'int', 'is_required' => 'bool', + 'sort' => 'integer', ]; /** @@ -68,7 +69,8 @@ class BindCategoryPropertiesRequestProperties implements ModelInterface, ArrayAc */ protected static $openAPIFormats = [ 'id' => null, - 'is_required' => null + 'is_required' => null, + 'sort' => null, ]; /** @@ -78,7 +80,8 @@ class BindCategoryPropertiesRequestProperties implements ModelInterface, ArrayAc */ protected static $openAPINullables = [ 'id' => false, - 'is_required' => false + 'is_required' => false, + 'sort' => true, ]; /** @@ -169,7 +172,8 @@ class BindCategoryPropertiesRequestProperties implements ModelInterface, ArrayAc */ protected static $attributeMap = [ 'id' => 'id', - 'is_required' => 'is_required' + 'is_required' => 'is_required', + 'sort' => 'sort', ]; /** @@ -179,7 +183,8 @@ class BindCategoryPropertiesRequestProperties implements ModelInterface, ArrayAc */ protected static $setters = [ 'id' => 'setId', - 'is_required' => 'setIsRequired' + 'is_required' => 'setIsRequired', + 'sort' => 'setSort', ]; /** @@ -189,7 +194,8 @@ class BindCategoryPropertiesRequestProperties implements ModelInterface, ArrayAc */ protected static $getters = [ 'id' => 'getId', - 'is_required' => 'getIsRequired' + 'is_required' => 'getIsRequired', + 'sort' => 'getSort', ]; /** @@ -290,6 +296,31 @@ class BindCategoryPropertiesRequestProperties implements ModelInterface, ArrayAc return count($this->listInvalidProperties()) === 0; } + /** + * Gets sort + * + * @return int|null + */ + public function getSort(): ?int + { + return $this->container['sort']; + } + + + /** + * Sets Sort + * + * @param int|null $sort + * + * @return $this + */ + public function setSort($sort) + { + $this->container['sort'] = $sort; + + return $this; + } + /** * Gets id -- GitLab From f95debb18ea3c0d1b0f6c987204274e4fcb79d7a Mon Sep 17 00:00:00 2001 From: Nikolay-Fichter Date: Tue, 18 Apr 2023 14:43:39 +0500 Subject: [PATCH 4/4] task_83453 | Refinement of properties for the filter --- lib/Dto/BindCategoryPropertiesRequestProperties.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Dto/BindCategoryPropertiesRequestProperties.php b/lib/Dto/BindCategoryPropertiesRequestProperties.php index d1e74bc..e93acf9 100644 --- a/lib/Dto/BindCategoryPropertiesRequestProperties.php +++ b/lib/Dto/BindCategoryPropertiesRequestProperties.php @@ -260,6 +260,7 @@ class BindCategoryPropertiesRequestProperties implements ModelInterface, ArrayAc { $this->setIfExists('id', $data, null); $this->setIfExists('is_required', $data, null); + $this->setIfExists('sort', $data, 500); } public function setIfExists(string $variableName, $fields, $defaultValue) -- GitLab