summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Metrics/Stream/Delta.php
blob: a4ff56d71ee3e926ba799d5caa72c6cf672b766c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?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;
    }
}