From b6c3551d36636d1b822ce5fba084e7114f1401ff Mon Sep 17 00:00:00 2001 From: Sebastian Krupinski Date: Sun, 21 Jun 2026 21:46:30 -0400 Subject: [PATCH] refactor: priority to rank Signed-off-by: Sebastian Krupinski --- shared/lib/People/Collection/CollectionMutableAbstract.php | 2 +- .../People/Collection/CollectionPropertiesBaseAbstract.php | 4 ++-- .../People/Collection/CollectionPropertiesBaseInterface.php | 6 +++--- .../Collection/CollectionPropertiesMutableAbstract.php | 4 ++-- .../Collection/CollectionPropertiesMutableInterface.php | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/shared/lib/People/Collection/CollectionMutableAbstract.php b/shared/lib/People/Collection/CollectionMutableAbstract.php index 44d4a8a..be204ad 100644 --- a/shared/lib/People/Collection/CollectionMutableAbstract.php +++ b/shared/lib/People/Collection/CollectionMutableAbstract.php @@ -41,7 +41,7 @@ abstract class CollectionMutableAbstract extends NodeMutableAbstract implements // Copy all property values $this->properties->setLabel($value->getLabel()); $this->properties->setDescription($value->getDescription()); - $this->properties->setPriority($value->getPriority()); + $this->properties->setRank($value->getRank()); $this->properties->setVisibility($value->getVisibility()); $this->properties->setColor($value->getColor()); diff --git a/shared/lib/People/Collection/CollectionPropertiesBaseAbstract.php b/shared/lib/People/Collection/CollectionPropertiesBaseAbstract.php index 3c426fc..f3e25e2 100644 --- a/shared/lib/People/Collection/CollectionPropertiesBaseAbstract.php +++ b/shared/lib/People/Collection/CollectionPropertiesBaseAbstract.php @@ -53,8 +53,8 @@ abstract class CollectionPropertiesBaseAbstract extends NodePropertiesBaseAbstra /** * @inheritDoc */ - public function getPriority(): ?int { - return $this->data[self::PROPERTY_PRIORITY] ?? null; + public function getRank(): ?int { + return $this->data[self::PROPERTY_RANK] ?? null; } /** diff --git a/shared/lib/People/Collection/CollectionPropertiesBaseInterface.php b/shared/lib/People/Collection/CollectionPropertiesBaseInterface.php index 06c9d3a..30c0ce3 100644 --- a/shared/lib/People/Collection/CollectionPropertiesBaseInterface.php +++ b/shared/lib/People/Collection/CollectionPropertiesBaseInterface.php @@ -19,7 +19,7 @@ interface CollectionPropertiesBaseInterface extends NodePropertiesBaseInterface public const PROPERTY_LABEL = 'label'; public const PROPERTY_DESCRIPTION = 'description'; - public const PROPERTY_PRIORITY = 'priority'; + public const PROPERTY_RANK = 'rank'; public const PROPERTY_VISIBILITY = 'visibility'; public const PROPERTY_COLOR = 'color'; @@ -47,11 +47,11 @@ interface CollectionPropertiesBaseInterface extends NodePropertiesBaseInterface public function getDescription(): ?string; /** - * Gets the priority of this collection + * Gets the rank of this collection * * @since 2025.05.01 */ - public function getPriority(): ?int; + public function getRank(): ?int; /** * Gets the visibility of this collection diff --git a/shared/lib/People/Collection/CollectionPropertiesMutableAbstract.php b/shared/lib/People/Collection/CollectionPropertiesMutableAbstract.php index ccca4f8..2d3795d 100644 --- a/shared/lib/People/Collection/CollectionPropertiesMutableAbstract.php +++ b/shared/lib/People/Collection/CollectionPropertiesMutableAbstract.php @@ -48,8 +48,8 @@ abstract class CollectionPropertiesMutableAbstract extends CollectionPropertiesB /** * @inheritDoc */ - public function setPriority(?int $value): static { - $this->data[self::PROPERTY_PRIORITY] = $value; + public function setRank(?int $value): static { + $this->data[self::PROPERTY_RANK] = $value; return $this; } diff --git a/shared/lib/People/Collection/CollectionPropertiesMutableInterface.php b/shared/lib/People/Collection/CollectionPropertiesMutableInterface.php index 91f5e9e..4e7f3c7 100644 --- a/shared/lib/People/Collection/CollectionPropertiesMutableInterface.php +++ b/shared/lib/People/Collection/CollectionPropertiesMutableInterface.php @@ -30,11 +30,11 @@ interface CollectionPropertiesMutableInterface extends NodePropertiesMutableInte public function setDescription(?string $value): static; /** - * Sets the priority of this collection + * Sets the rank of this collection * * @since 2025.05.01 */ - public function setPriority(?int $value): static; + public function setRank(?int $value): static; /** * Sets the visibility of this collection