Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RuleWatchChain.php

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\DependencyResolver

Code

public function seek(int $offset) : void {
    $this->rewind();
    for ($i = 0; $i < $offset; $i++, $this->next()) {
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal