Completed
Push — v5 ( 9c84b7...e03f3a )
by Georges
02:50
created

extendedPhpFastCache::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
namespace MyCustom\Project;
3
4
use phpFastCache\Drivers\Files\Driver as FilesDriver;
5
6
/**
7
 * Class extendsPhpFastCache
8
 * @package MyCustom\Project
9
 */
10
class extendedPhpFastCache extends FilesDriver
11
{
12
    public function __construct(array $config = [])
13
    {
14
        $config[ 'path' ] = 'your/custom/path/where/files/will/be/written';
15
        parent::__construct($config);
16
        /**
17
         * That's all !! Your cache class is ready to use
18
         */
19
    }
20
}