Completed
Push — 4.0 ( b59aea...80f83b )
by Loz
52s queued 21s
created

MockCache::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SilverStripe\Core\Test\Cache\CacheTest;
4
5
use SilverStripe\Dev\TestOnly;
6
7
class MockCache implements TestOnly
8
{
9
    protected $args = [];
10
11
    public function __construct()
12
    {
13
        $this->args = func_get_args();
14
    }
15
16
    /**
17
     * Get constructor args
18
     *
19
     * @return array
20
     */
21
    public function getArgs()
22
    {
23
        return $this->args;
24
    }
25
}
26