summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/context/ContextKey.php
blob: f7450249e03fb681c79abb9d56a24e4c31532684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

declare(strict_types=1);

namespace OpenTelemetry\Context;

/**
 * @internal
 */
final class ContextKey implements ContextKeyInterface
{
    private ?string $name;

    public function __construct(?string $name=null)
    {
        $this->name = $name;
    }

    public function name(): ?string
    {
        return $this->name;
    }
}