Failed Conditions
Push — psr2 ( e24a74...d8b492 )
by Andreas
06:23 queued 03:20
created

cache_parser::_useCache()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
// phpcs:ignoreFile
3
use dokuwiki\Cache\CacheParser;
4
use dokuwiki\Cache\CacheInstructions;
5
use dokuwiki\Cache\CacheRenderer;
6
use dokuwiki\Debug\DebugHelper;
7
8
/**
9
 * @deprecated since 2019-02-02 use \dokuwiki\Cache\Cache instead!
10
 */
11
class cache extends \dokuwiki\Cache\Cache
12
{
13
14
    public function __construct($key, $ext)
15
    {
16
        DebugHelper::dbgDeprecatedFunction(dokuwiki\Cache\Cache::class);
17
        parent::__construct($key, $ext);
18
    }
19
20
}
21
22
/**
23
 * @deprecated since 2019-02-02 use \dokuwiki\Cache\CacheParser instead!
24
 */
25
class cache_parser extends \dokuwiki\Cache\CacheParser
26
{
27
28
    public function __construct($id, $file, $mode)
29
    {
30
        DebugHelper::dbgDeprecatedFunction(CacheParser::class);
31
        parent::__construct($id, $file, $mode);
32
    }
33
34
}
35
36
/**
37
 * @deprecated since 2019-02-02 use \dokuwiki\Cache\CacheRenderer instead!
38
 */
39
class cache_renderer extends \dokuwiki\Cache\CacheRenderer
40
{
41
42
    public function __construct($id, $file, $mode)
43
    {
44
        DebugHelper::dbgDeprecatedFunction(CacheRenderer::class);
45
        parent::__construct($id, $file, $mode);
46
    }
47
}
48
49
/**
50
 * @deprecated since 2019-02-02 use \dokuwiki\Cache\CacheInstructions instead!
51
 */
52
class cache_instructions extends \dokuwiki\Cache\CacheInstructions
53
{
54
    public function __construct($id, $file)
55
    {
56
        DebugHelper::dbgDeprecatedFunction(CacheInstructions::class);
57
        parent::__construct($id, $file);
58
    }
59
}
60