refactor: priority to rank

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-06-21 21:46:30 -04:00
parent a6e2a447e5
commit b6c3551d36
5 changed files with 10 additions and 10 deletions
@@ -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());
@@ -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;
}
/**
@@ -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
@@ -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;
}
@@ -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