ttrss/vendor/open-telemetry/sdk/Metrics/Stream/Delta.php

34 lines
664 B
PHP

<?php
declare(strict_types=1);
namespace OpenTelemetry\SDK\Metrics\Stream;
use GMP;
/**
* @internal
*/
final class Delta
{
public Metric $metric;
/**
* @psalm-suppress UndefinedDocblockClass
* @phan-suppress PhanUndeclaredTypeProperty
* @var int|GMP
*/
public $readers;
public ?self $prev;
/**
* @psalm-suppress UndefinedDocblockClass
* @phan-suppress PhanUndeclaredTypeParameter
* @param int|GMP $readers
*/
public function __construct(Metric $metric, $readers, ?self $prev = null)
{
$this->metric = $metric;
$this->readers = $readers;
$this->prev = $prev;
}
}