PHP Interface Tolerance\Tracer\SpanStack\SpanStack

显示文件 Open project: sroze/tolerance Interface Usage Examples

Public Methods

Method Description
current ( ) : Span | null Get the current span in the stack.
pop ( ) : Span | null Pop a span from the stack.
push ( Span $span ) : Span Push a span in the stack.

Method Details

current() public method

Get the current span in the stack.
public current ( ) : Span | null
return Tolerance\Tracer\Span\Span | null

pop() public method

Pop a span from the stack.
public pop ( ) : Span | null
return Tolerance\Tracer\Span\Span | null

push() public method

Push a span in the stack.
public push ( Span $span ) : Span
$span Tolerance\Tracer\Span\Span
return Tolerance\Tracer\Span\Span