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

Breadcrumb

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

function Iterator::valid

Checks if there is a current element after calls to rewind() or next().

1 call to Iterator::valid()
Iterator::current in vendor/phpunit/php-code-coverage/src/Node/Iterator.php
Returns the current element.

File

vendor/phpunit/php-code-coverage/src/Node/Iterator.php, line 43

Class

Iterator
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

Namespace

SebastianBergmann\CodeCoverage\Node

Code

public function valid() : bool {
    return $this->position < count($this->nodes);
}
RSS feed
Powered by Drupal