Loading lib/Dto/CategoryBoundProperty.php +37 −6 Original line number Diff line number Diff line Loading @@ -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', ]; /** Loading @@ -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, ]; /** Loading @@ -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, ]; /** Loading Loading @@ -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', ]; /** Loading @@ -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', ]; /** Loading @@ -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', ]; /** Loading Loading @@ -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) Loading Loading @@ -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 Loading Loading
lib/Dto/CategoryBoundProperty.php +37 −6 Original line number Diff line number Diff line Loading @@ -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', ]; /** Loading @@ -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, ]; /** Loading @@ -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, ]; /** Loading Loading @@ -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', ]; /** Loading @@ -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', ]; /** Loading @@ -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', ]; /** Loading Loading @@ -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) Loading Loading @@ -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 Loading