ttrss/vendor/open-telemetry/api/Baggage/Metadata.php

28 lines
493 B
PHP
Raw Normal View History

2023-10-20 14:12:29 +00:00
<?php
declare(strict_types=1);
namespace OpenTelemetry\API\Baggage;
final class Metadata implements MetadataInterface
{
private static ?self $instance = null;
public static function getEmpty(): Metadata
{
return self::$instance ??= new self('');
}
private string $metadata;
public function __construct(string $metadata)
{
$this->metadata = $metadata;
}
public function getValue(): string
{
return $this->metadata;
}
}