Total Complexity | 9 |
Total Lines | 96 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | class DriverIO |
||
24 | { |
||
25 | /** |
||
26 | * @var int |
||
27 | */ |
||
28 | protected $writeHit = 0; |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | protected $readHit = 0; |
||
34 | |||
35 | /** |
||
36 | * @var int |
||
37 | */ |
||
38 | protected $readMiss = 0; |
||
39 | |||
40 | /** |
||
41 | * @return int |
||
42 | */ |
||
43 | public function getWriteHit(): int |
||
44 | { |
||
45 | return $this->writeHit; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @param int $writeHit |
||
50 | * @return DriverIO |
||
51 | */ |
||
52 | public function setWriteHit(int $writeHit): DriverIO |
||
53 | { |
||
54 | $this->writeHit = $writeHit; |
||
55 | return $this; |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return DriverIO |
||
60 | */ |
||
61 | public function incWriteHit(): DriverIO |
||
62 | { |
||
63 | $this->writeHit++; |
||
64 | return $this; |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * @return int |
||
69 | */ |
||
70 | public function getReadHit(): int |
||
73 | } |
||
74 | |||
75 | /** |
||
76 | * @param int $readHit |
||
77 | * @return DriverIO |
||
78 | */ |
||
79 | public function setReadHit(int $readHit): DriverIO |
||
80 | { |
||
81 | $this->readHit = $readHit; |
||
82 | return $this; |
||
83 | } |
||
84 | |||
85 | /** |
||
86 | * @return DriverIO |
||
87 | */ |
||
88 | public function incReadHit(): DriverIO |
||
92 | } |
||
93 | |||
94 | /** |
||
95 | * @return int |
||
96 | */ |
||
97 | public function getReadMiss(): int |
||
100 | } |
||
101 | |||
102 | /** |
||
103 | * @param int $readMiss |
||
104 | * @return DriverIO |
||
105 | */ |
||
106 | public function setReadMiss(int $readMiss): DriverIO |
||
107 | { |
||
108 | $this->readMiss = $readMiss; |
||
109 | return $this; |
||
110 | } |
||
111 | |||
112 | /** |
||
113 | * @return DriverIO |
||
114 | */ |
||
115 | public function incReadMiss(): DriverIO |
||
119 | } |
||
120 | } |