for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* This file is part of phpFastCache.
* @license MIT License (MIT)
* For full copyright and license information, please see the docs/CREDITS.txt file.
* @author Khoa Bui (khoaofgod) <[email protected]> https://www.phpfastcache.com
* @author Georges.L (Geolim4) <[email protected]>
*/
declare(strict_types=1);
namespace Phpfastcache\Entities;
* Class DriverStatistic
* @package phpFastCache\Entities
class DriverIO
{
* @var int
protected $writeHit = 0;
protected $readHit = 0;
protected $readMiss = 0;
* @return int
public function getWriteHit(): int
return $this->writeHit;
}
* @param int $writeHit
* @return DriverIO
public function setWriteHit(int $writeHit): DriverIO
$this->writeHit = $writeHit;
return $this;
public function incWriteHit(): DriverIO
$this->writeHit++;
public function getReadHit(): int
return $this->readHit;
* @param int $readHit
public function setReadHit(int $readHit): DriverIO
$this->readHit = $readHit;
public function incReadHit(): DriverIO
$this->readHit++;
public function getReadMiss(): int
return $this->readMiss;
* @param int $readMiss
public function setReadMiss(int $readMiss): DriverIO
$this->readMiss = $readMiss;
public function incReadMiss(): DriverIO
$this->readMiss++;