Tolerance\Tracer\Span\Identifier::fromString PHP 메소드

fromString() 공개 정적인 메소드

public static fromString ( $string )
    public static function fromString($string)
    {
        return new self($string);
    }

Usage Example

예제 #1
0
 function it_uses_the_span_name_when_only_one_is_traced(Tracer $decoratedTracer, Stopwatch $stopwatch)
 {
     $spans = [new Span(Identifier::fromString('1234'), 'name', Identifier::fromString('1234'))];
     $stopwatch->start('trace (name)')->shouldBeCalled();
     $stopwatch->stop('trace (name)')->shouldBeCalled();
     $this->trace($spans);
 }
All Usage Examples Of Tolerance\Tracer\Span\Identifier::fromString