function RuleWatchChain::seek
Moves the internal iterator to the specified offset
Parameters
int $offset The offset to seek to.:
1 call to RuleWatchChain::seek()
- RuleWatchChain::remove in vendor/
composer/ composer/ src/ Composer/ DependencyResolver/ RuleWatchChain.php - Removes the current element from the list
File
-
vendor/
composer/ composer/ src/ Composer/ DependencyResolver/ RuleWatchChain.php, line 31
Class
- RuleWatchChain
- An extension of SplDoublyLinkedList with seek and removal of current element
Namespace
Composer\DependencyResolverCode
public function seek(int $offset) : void {
$this->rewind();
for ($i = 0; $i < $offset; $i++, $this->next()) {
}
}