Composer API
Class

Composer\DependencyResolver\RuleWatchChain

class RuleWatchChain extends SplDoublyLinkedList

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.

Methods

seek(int $offset)

Moves the internal iterator to the specified offset

remove()

Removes the current element from the list

Details

at line 32
public seek(int $offset)

Moves the internal iterator to the specified offset

Parameters

int $offset The offset to seek to.

at line 46
public 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.