Skip to content

Commit

Permalink
reordered positioning of generic templates to coincide with array<key…
Browse files Browse the repository at this point in the history
…, value> syntax
  • Loading branch information
dwilbourne committed Oct 9, 2024
1 parent 76ddc0a commit 2b566f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/struct/treesearch/TreeSearchInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

/**
* Class TreeSearchInterface
* @template NodeType of NodeSearchableInterface
* @template NodeIdType of array-key
* @template NodeType of NodeSearchableInterface
*/
interface TreeSearchInterface
{
Expand All @@ -29,13 +29,13 @@ public function getStartNode(): mixed;

/**
* setSearchStrategy
* @param TreeSearchStrategyInterface<NodeType, NodeIdType> $strategy
* @param TreeSearchStrategyInterface<NodeIdType, NodeType> $strategy
*/
public function setSearchStrategy(TreeSearchStrategyInterface $strategy): void;

/**
* getSearchStrategy
* @return TreeSearchStrategyInterface<NodeType, NodeIdType>
* @return TreeSearchStrategyInterface<NodeIdType, NodeType>
*/
public function getSearchStrategy(): TreeSearchStrategyInterface;

Expand Down
3 changes: 2 additions & 1 deletion src/struct/treesearch/TreeSearchStrategyInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@

/**
* Class TreeSearchStrategyInterface
* @template NodeType of NodeSearchableInterface
* @template NodeIdType of array-key
* @template NodeType of NodeSearchableInterface
*
* @extends Iterator<NodeIdType, NodeType>
*/
interface TreeSearchStrategyInterface extends Iterator
Expand Down

0 comments on commit 2b566f4

Please sign in to comment.