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

Driver::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 4
rs 10
c 0
b 0
f 0
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