Skip to content

Commit

Permalink
Update NaryNodeInterface and add missing method and its documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Dec 28, 2018
1 parent fe97ac7 commit 552c0ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Node/NaryNodeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace drupol\phptree\Node;

use drupol\phptree\Traverser\TraverserInterface;

/**
* Interface NaryNodeInterface
*/
Expand All @@ -16,4 +18,12 @@ interface NaryNodeInterface
* The node capacity.
*/
public function capacity(): int;

/**
* Get the traverser in use.
*
* @return \drupol\phptree\Traverser\TraverserInterface
* The traverser.
*/
public function getTraverser(): TraverserInterface;
}

0 comments on commit 552c0ea

Please sign in to comment.