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

MockCache   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getArgs() 0 3 1
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