20 lines
534 B
PHP
20 lines
534 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OpenTelemetry\Trace;
|
|
|
|
interface AttributesIterator extends \Iterator
|
|
{
|
|
public function key(): string;
|
|
public function current(): Attribute;
|
|
|
|
/**
|
|
* Should be valid to call rewind as many times as desired UNTIL next() has been called; then it is implementation
|
|
* defined whether it is valid or not. The implementation should throw if it cannot be rewound.
|
|
*/
|
|
public function rewind(): void;
|
|
public function valid(): bool;
|
|
public function next(): void;
|
|
}
|