The type phpFastCache\Entities\DriverStatistic has been defined more than once; this definition is ignored, only the first definition in src/phpFastCache/Entities/DriverStatistic.php (L20-131) is considered.
This check looks for classes that have been defined more than once.
If you can, we would recommend to use standard object-oriented programming
techniques. For example, to avoid multiple types, it might make sense to create a
common interface, and then multiple, different implementations for that interface.
This also has the side-effect of providing you with better IDE auto-completion,
static analysis and also better OPCode caching from PHP.
Loading history...
21
{
22
/**
23
* @var string
24
*/
25
protected $info = '';
26
27
/**
28
* @var string
29
*/
30
protected $size = 0;
31
32
/**
33
* @var string
34
*/
35
protected $data = '';
36
37
/**
38
* @var mixed
39
*/
40
protected $rawData;
41
42
/**
43
* @return string|bool Return infos or false if no information available
44
*/
45
public function getInfo()
46
{
47
return $this->info;
48
}
49
50
/**
51
* @return int|bool Return size in octet or false if no information available
This check looks for classes that have been defined more than once.
If you can, we would recommend to use standard object-oriented programming techniques. For example, to avoid multiple types, it might make sense to create a common interface, and then multiple, different implementations for that interface.
This also has the side-effect of providing you with better IDE auto-completion, static analysis and also better OPCode caching from PHP.