Test Failed
Push — master ( 3dd85e...34f16b )
by Devin
04:34 queued 10s
created

RequestTelemetry::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Stripe;
4
5
/**
6
 * Class RequestTelemetry
7
 *
8
 * Tracks client request telemetry
9
 * @package Stripe
10
 */
11
class RequestTelemetry
12
{
13
    public $requestId;
14
    public $requestDuration;
15
16
    /**
17
     * Initialize a new telemetry object.
18
     *
19
     * @param string $requestId The request's request ID.
20
     * @param int $requestDuration The request's duration in milliseconds.
21
     */
22
    public function __construct($requestId, $requestDuration)
23
    {
24
        $this->requestId = $requestId;
25
        $this->requestDuration = $requestDuration;
26
    }
27
}
28