|
9 | 9 | final class OpcacheStats |
10 | 10 | { |
11 | 11 | public function __construct( |
12 | | - private bool $enabled, |
13 | | - private Size $size, |
14 | | - private Size $usage, |
15 | | - private Size $internedStringsSize, |
16 | | - private Size $internedStringsUsage, |
17 | | - private int $internedStringsNumber, |
18 | | - private int $scriptSlotsSize, |
19 | | - private int $scriptSlotsUsage, |
20 | | - private float $hitRatio |
| 12 | + public readonly bool $enabled, |
| 13 | + public readonly Size $size, |
| 14 | + public readonly Size $usage, |
| 15 | + public readonly Size $internedStringsSize, |
| 16 | + public readonly Size $internedStringsUsage, |
| 17 | + public readonly int $internedStringsNumber, |
| 18 | + public readonly int $scriptSlotsSize, |
| 19 | + public readonly int $scriptSlotsUsage, |
| 20 | + public readonly float $hitRatio |
21 | 21 | ) { |
22 | 22 | } |
23 | | - |
24 | | - public function enabled(): bool |
25 | | - { |
26 | | - return $this->enabled; |
27 | | - } |
28 | | - |
29 | | - public function size(): Size |
30 | | - { |
31 | | - return $this->size; |
32 | | - } |
33 | | - |
34 | | - public function usage(): Size |
35 | | - { |
36 | | - return $this->usage; |
37 | | - } |
38 | | - |
39 | | - public function internedStringsSize(): Size |
40 | | - { |
41 | | - return $this->internedStringsSize; |
42 | | - } |
43 | | - |
44 | | - public function internedStringsUsage(): Size |
45 | | - { |
46 | | - return $this->internedStringsUsage; |
47 | | - } |
48 | | - |
49 | | - public function internedStringsNumber(): int |
50 | | - { |
51 | | - return $this->internedStringsNumber; |
52 | | - } |
53 | | - |
54 | | - public function scriptSlotsSize(): int |
55 | | - { |
56 | | - return $this->scriptSlotsSize; |
57 | | - } |
58 | | - |
59 | | - public function scriptSlotsUsage(): int |
60 | | - { |
61 | | - return $this->scriptSlotsUsage; |
62 | | - } |
63 | | - |
64 | | - public function hitRatio(): float |
65 | | - { |
66 | | - return $this->hitRatio; |
67 | | - } |
68 | 23 | } |
0 commit comments