Passed
Push — master ( c82647...c877fa )
by Georges
11:01
created

Driver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 2
b 0
f 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/**
4
 *
5
 * This file is part of Phpfastcache.
6
 *
7
 * @license MIT License (MIT)
8
 *
9
 * For full copyright and license information, please see the docs/CREDITS.txt and LICENCE files.
10
 *
11
 * @author Georges.L (Geolim4)  <[email protected]>
12
 * @author Contributors  https://github.com/PHPSocialNetwork/phpfastcache/graphs/contributors
13
 */
14
15
declare(strict_types=1);
16
17
namespace Phpfastcache\Drivers\Memstatic;
18
19
use Phpfastcache\Config\ConfigurationOptionInterface;
20
use Phpfastcache\Event\EventManagerInterface;
21
22
/**
23
 * @deprecated Memstatic driver has changed its name, it is now called "Memory".
24
 * @see \Phpfastcache\Drivers\Memory\Driver
25
 */
26
class Driver extends \Phpfastcache\Drivers\Memory\Driver
27
{
28
    public function __construct(#[\SensitiveParameter] ConfigurationOptionInterface $config, string $instanceId, EventManagerInterface $em)
29
    {
30
        trigger_error('Memstatic driver has changed its name, it is now called "Memory"', E_USER_DEPRECATED);
31
        parent::__construct($config, $instanceId, $em);
32
    }
33
}
34