refactor: priority to rank
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -41,7 +41,7 @@ abstract class CollectionMutableAbstract extends NodeMutableAbstract implements
|
|||||||
// Copy all property values
|
// Copy all property values
|
||||||
$this->properties->setLabel($value->getLabel());
|
$this->properties->setLabel($value->getLabel());
|
||||||
$this->properties->setDescription($value->getDescription());
|
$this->properties->setDescription($value->getDescription());
|
||||||
$this->properties->setPriority($value->getPriority());
|
$this->properties->setRank($value->getRank());
|
||||||
$this->properties->setVisibility($value->getVisibility());
|
$this->properties->setVisibility($value->getVisibility());
|
||||||
$this->properties->setColor($value->getColor());
|
$this->properties->setColor($value->getColor());
|
||||||
|
|
||||||
|
|||||||
@@ -53,8 +53,8 @@ abstract class CollectionPropertiesBaseAbstract extends NodePropertiesBaseAbstra
|
|||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
public function getPriority(): ?int {
|
public function getRank(): ?int {
|
||||||
return $this->data[self::PROPERTY_PRIORITY] ?? null;
|
return $this->data[self::PROPERTY_RANK] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ interface CollectionPropertiesBaseInterface extends NodePropertiesBaseInterface
|
|||||||
|
|
||||||
public const PROPERTY_LABEL = 'label';
|
public const PROPERTY_LABEL = 'label';
|
||||||
public const PROPERTY_DESCRIPTION = 'description';
|
public const PROPERTY_DESCRIPTION = 'description';
|
||||||
public const PROPERTY_PRIORITY = 'priority';
|
public const PROPERTY_RANK = 'rank';
|
||||||
public const PROPERTY_VISIBILITY = 'visibility';
|
public const PROPERTY_VISIBILITY = 'visibility';
|
||||||
public const PROPERTY_COLOR = 'color';
|
public const PROPERTY_COLOR = 'color';
|
||||||
|
|
||||||
@@ -47,11 +47,11 @@ interface CollectionPropertiesBaseInterface extends NodePropertiesBaseInterface
|
|||||||
public function getDescription(): ?string;
|
public function getDescription(): ?string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the priority of this collection
|
* Gets the rank of this collection
|
||||||
*
|
*
|
||||||
* @since 2025.05.01
|
* @since 2025.05.01
|
||||||
*/
|
*/
|
||||||
public function getPriority(): ?int;
|
public function getRank(): ?int;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the visibility of this collection
|
* Gets the visibility of this collection
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ abstract class CollectionPropertiesMutableAbstract extends CollectionPropertiesB
|
|||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
public function setPriority(?int $value): static {
|
public function setRank(?int $value): static {
|
||||||
$this->data[self::PROPERTY_PRIORITY] = $value;
|
$this->data[self::PROPERTY_RANK] = $value;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,11 +30,11 @@ interface CollectionPropertiesMutableInterface extends NodePropertiesMutableInte
|
|||||||
public function setDescription(?string $value): static;
|
public function setDescription(?string $value): static;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the priority of this collection
|
* Sets the rank of this collection
|
||||||
*
|
*
|
||||||
* @since 2025.05.01
|
* @since 2025.05.01
|
||||||
*/
|
*/
|
||||||
public function setPriority(?int $value): static;
|
public function setRank(?int $value): static;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the visibility of this collection
|
* Sets the visibility of this collection
|
||||||
|
|||||||
Reference in New Issue
Block a user