Tolerance\Tracer\Span\Span::__construct PHP Method

__construct() public method

Span constructor.
public __construct ( Identifier $identifier, string $name, Identifier $traceIdentifier, array $annotations = [], array $binaryAnnotations = [], Identifier $parentIdentifier = null, boolean | null $debug = null, integer | null $timestamp = null, integer | null $duration = null )
$identifier Identifier
$name string
$traceIdentifier Identifier
$annotations array
$binaryAnnotations array
$parentIdentifier Identifier
$debug boolean | null
$timestamp integer | null
$duration integer | null
    public function __construct(Identifier $identifier, $name, Identifier $traceIdentifier, array $annotations = [], array $binaryAnnotations = [], Identifier $parentIdentifier = null, $debug = null, $timestamp = null, $duration = null)
    {
        $this->identifier = $identifier;
        $this->name = $name;
        $this->traceIdentifier = $traceIdentifier;
        $this->parentIdentifier = $parentIdentifier;
        $this->annotations = $annotations;
        $this->binaryAnnotations = $binaryAnnotations;
        $this->debug = $debug;
        $this->timestamp = $timestamp;
        $this->duration = $duration;
    }