function Duration::__construct
Same name in this branch
- 11.1.x vendor/phpunit/php-timer/src/Duration.php \SebastianBergmann\Timer\Duration::__construct()
- 11.1.x vendor/google/protobuf/src/Google/Protobuf/Duration.php \Google\Protobuf\Duration::__construct()
Throws
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Value/ Telemetry/ Duration.php, line 40
Class
- Duration
- @psalm-immutable
Namespace
PHPUnit\Event\TelemetryCode
private function __construct(int $seconds, int $nanoseconds) {
$this->ensureNotNegative($seconds, 'seconds');
$this->ensureNotNegative($nanoseconds, 'nanoseconds');
$this->ensureNanoSecondsInRange($nanoseconds);
$this->seconds = $seconds;
$this->nanoseconds = $nanoseconds;
}