Skip to content

Commit 6c8fd83

Browse files
Remove superfluous comments
1 parent e0ea704 commit 6c8fd83

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/Node/Iterator.php

-21
Original file line numberDiff line numberDiff line change
@@ -30,59 +30,38 @@ public function __construct(Directory $node)
3030
$this->nodes = $node->children();
3131
}
3232

33-
/**
34-
* Rewinds the Iterator to the first element.
35-
*/
3633
public function rewind(): void
3734
{
3835
$this->position = 0;
3936
}
4037

41-
/**
42-
* Checks if there is a current element after calls to rewind() or next().
43-
*/
4438
public function valid(): bool
4539
{
4640
return $this->position < count($this->nodes);
4741
}
4842

49-
/**
50-
* Returns the key of the current element.
51-
*/
5243
public function key(): int
5344
{
5445
return $this->position;
5546
}
5647

57-
/**
58-
* Returns the current element.
59-
*/
6048
public function current(): ?AbstractNode
6149
{
6250
return $this->valid() ? $this->nodes[$this->position] : null;
6351
}
6452

65-
/**
66-
* Moves forward to next element.
67-
*/
6853
public function next(): void
6954
{
7055
$this->position++;
7156
}
7257

73-
/**
74-
* Returns the sub iterator for the current element.
75-
*/
7658
public function getChildren(): self
7759
{
7860
assert($this->nodes[$this->position] instanceof Directory);
7961

8062
return new self($this->nodes[$this->position]);
8163
}
8264

83-
/**
84-
* Checks whether the current element has children.
85-
*/
8665
public function hasChildren(): bool
8766
{
8867
return $this->nodes[$this->position] instanceof Directory;

0 commit comments

Comments
 (0)