We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d60ca8 commit c8ec829Copy full SHA for c8ec829
src/Collector/Stack.php
@@ -13,17 +13,13 @@
13
*/
14
final class Stack
15
{
16
- private string $client;
17
-
18
private ?Stack $parent = null;
19
20
/**
21
* @var Profile[]
22
23
private array $profiles = [];
24
25
- private string $request;
26
27
private ?string $response = null;
28
29
private bool $failed = false;
@@ -50,10 +46,10 @@ final class Stack
50
46
51
47
private ?string $curlCommand = null;
52
48
53
- public function __construct(string $client, string $request)
54
- {
55
- $this->client = $client;
56
- $this->request = $request;
49
+ public function __construct(
+ private readonly string $client,
+ private readonly string $request,
+ ) {
57
}
58
59
0 commit comments