diff options
Diffstat (limited to 'vendor/open-telemetry/api/Baggage/BaggageBuilder.php')
| -rw-r--r-- | vendor/open-telemetry/api/Baggage/BaggageBuilder.php | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/vendor/open-telemetry/api/Baggage/BaggageBuilder.php b/vendor/open-telemetry/api/Baggage/BaggageBuilder.php deleted file mode 100644 index d4500eac5..000000000 --- a/vendor/open-telemetry/api/Baggage/BaggageBuilder.php +++ /dev/null @@ -1,40 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace OpenTelemetry\API\Baggage; - -final class BaggageBuilder implements BaggageBuilderInterface -{ - /** @var array<string, Entry> */ - private array $entries; - - /** @param array<string, Entry> $entries */ - public function __construct(array $entries = []) - { - $this->entries = $entries; - } - - /** @inheritDoc */ - public function remove(string $key): BaggageBuilderInterface - { - unset($this->entries[$key]); - - return $this; - } - - /** @inheritDoc */ - public function set(string $key, $value, MetadataInterface $metadata = null): BaggageBuilderInterface - { - $metadata ??= Metadata::getEmpty(); - - $this->entries[$key] = new Entry($value, $metadata); - - return $this; - } - - public function build(): BaggageInterface - { - return new Baggage($this->entries); - } -} |