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

declare(strict_types=1);

namespace OpenTelemetry\Context;

use ArrayAccess;

interface ContextStorageScopeInterface extends ScopeInterface, ArrayAccess
{
    /**
     * Returns the context associated with this scope.
     *
     * @return ContextInterface associated context
     */
    public function context(): ContextInterface;

    /**
     * @param string $offset
     */
    public function offsetSet($offset, $value): void;
}