Skip to content

Commit 71e45d6

Browse files
committed
add setLevel()
1 parent 73e1a4d commit 71e45d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/PHPCR/Util/TraversingItemVisitor.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ public function __construct($breadthFirst = false, $maxDepth = -1)
115115
$this->currentDepth = 0;
116116
}
117117

118+
public function setLevel($level)
119+
{
120+
$this->currentDepth = $level;
121+
}
122+
118123
/**
119124
* Implement this method to add behavior performed before a Property is
120125
* visited.

0 commit comments

Comments
 (0)