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

Breadcrumb

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

function Duration::ensureNanoSecondsInRange

Throws

InvalidArgumentException

1 call to Duration::ensureNanoSecondsInRange()
Duration::__construct in vendor/phpunit/phpunit/src/Event/Value/Telemetry/Duration.php

File

vendor/phpunit/phpunit/src/Event/Value/Telemetry/Duration.php, line 140

Class

Duration
@psalm-immutable

Namespace

PHPUnit\Event\Telemetry

Code

private function ensureNanoSecondsInRange(int $nanoseconds) : void {
    if ($nanoseconds > 999999999) {
        throw new InvalidArgumentException('Value for nanoseconds must not be greater than 999999999.');
    }
}

API Navigation

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