summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/api/Baggage/Entry.php
blob: eb3d0de5bfb860dca923654af7b8a82f71f374c2 (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
34
35
36
37
38
<?php

declare(strict_types=1);

namespace OpenTelemetry\API\Baggage;

final class Entry
{
    /** @var mixed */
    private $value;

    private MetadataInterface $metadata;

    /**
     * @param mixed $value
     * @param MetadataInterface $metadata
     */
    public function __construct(
        $value,
        MetadataInterface $metadata
    ) {
        $this->value = $value;
        $this->metadata = $metadata;
    }

    /**
     * @return mixed
     */
    public function getValue()
    {
        return $this->value;
    }

    public function getMetadata(): MetadataInterface
    {
        return $this->metadata;
    }
}