Skip to content

Commit 2b40dd2

Browse files
committed
Mark class as final
1 parent 43ac3cb commit 2b40dd2

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

src/Memcached.php

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,15 @@
55
use React\Cache\CacheInterface;
66
use React\EventLoop\LoopInterface;
77
use React\Promise\PromiseInterface;
8-
use seregazhuk\React\Memcached\Client;
98
use seregazhuk\React\Memcached\Factory as ClientFactory;
109

11-
class Memcached implements CacheInterface
10+
final class Memcached implements CacheInterface
1211
{
13-
/**
14-
* @var Client
15-
*/
16-
protected $client;
12+
private $client;
1713

18-
/**
19-
* @var string
20-
*/
21-
protected $prefix;
14+
private $prefix;
2215

23-
/**
24-
* @param LoopInterface $loop
25-
* @param string $address
26-
* @param string $prefix
27-
*/
28-
public function __construct(LoopInterface $loop, $address = 'localhost:11211', $prefix = 'react:cache:')
16+
public function __construct(LoopInterface $loop, string $address = 'localhost:11211', string $prefix = 'react:cache:')
2917
{
3018
$this->client = ClientFactory::createClient($loop, $address);
3119
$this->prefix = $prefix;

0 commit comments

Comments
 (0)