Skip to content

Commit 9b5b592

Browse files
committed
Protected some properties
1 parent 4ec7b4e commit 9b5b592

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/phpFastCache/Cache/DriverBaseTrait.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,20 @@ trait DriverBaseTrait
2424
{
2525
use ExtendedCacheItemPoolTrait;
2626

27-
/**
28-
* @var array
29-
*/
30-
public $extension_dir = '_extensions';
31-
3227
/**
3328
* @var array default options, this will be merge to Driver's Options
3429
*/
35-
public $config = [];
30+
protected $config = [];
3631

3732
/**
3833
* @var bool
3934
*/
40-
public $fallback = false;
35+
protected $fallback = false;
4136

4237
/**
4338
* @var mixed Instance of driver service
4439
*/
45-
public $instance;
40+
protected $instance;
4641

4742
/**
4843
* @param $keyword
@@ -69,6 +64,13 @@ public function setup($config_name, $value = '')
6964
}
7065
}
7166

67+
/**
68+
* @return array
69+
*/
70+
public function getConfig()
71+
{
72+
return $this->config;
73+
}
7274

7375
/**
7476
* @param $file

0 commit comments

Comments
 (0)