\Composer\DependencyResolverRuleWatchChain

An extension of SplDoublyLinkedList with seek and removal of current element

SplDoublyLinkedList only allows deleting a particular offset and has no method to set the internal iterator to a particular offset.

Summary

Methods
Properties
Constants
seek()
remove()
No public properties found
No constants found
No protected methods found
$offset
N/A
No private methods found
No private properties found
N/A

Properties

$offset

$offset : 

Type

Methods

seek()

seek(integer  $offset) 

Moves the internal iterator to the specified offset

Parameters

integer $offset

The offset to seek to.

remove()

remove() 

Removes the current element from the list

As SplDoublyLinkedList only allows deleting a particular offset and incorrectly sets the internal iterator if you delete the current value this method sets the internal iterator back to the following element using the seek method.