diff options
Diffstat (limited to 'vendor/opentracing/opentracing/src/OpenTracing/NoopScope.php')
-rw-r--r-- | vendor/opentracing/opentracing/src/OpenTracing/NoopScope.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/opentracing/opentracing/src/OpenTracing/NoopScope.php b/vendor/opentracing/opentracing/src/OpenTracing/NoopScope.php new file mode 100644 index 000000000..7170c846a --- /dev/null +++ b/vendor/opentracing/opentracing/src/OpenTracing/NoopScope.php @@ -0,0 +1,23 @@ +<?php + +declare(strict_types=1); + +namespace OpenTracing; + +final class NoopScope implements Scope +{ + /** + * {@inheritdoc} + */ + public function close(): void + { + } + + /** + * {@inheritdoc} + */ + public function getSpan(): Span + { + return new NoopSpan(); + } +} |