File tree 4 files changed +14
-14
lines changed
4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 25
25
class CacheDataCollector extends DataCollector
26
26
{
27
27
/**
28
- * @type CacheProxy []
28
+ * @type CacheProxyInterface []
29
29
*/
30
30
private $ instances = [];
31
31
32
32
/**
33
- * @param string $name
34
- * @param CacheProxy $instance
33
+ * @param string $name
34
+ * @param CacheProxyInterface $instance
35
35
*/
36
- public function addInstance ($ name , CacheProxy $ instance )
36
+ public function addInstance ($ name , CacheProxyInterface $ instance )
37
37
{
38
38
$ this ->instances [$ name ] = $ instance ;
39
39
}
Original file line number Diff line number Diff line change 16
16
*
17
17
* @author Tobias Nyholm <[email protected] >
18
18
*/
19
- interface CacheProxy
19
+ interface CacheProxyInterface
20
20
{
21
21
public function __getCalls ();
22
22
Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ public function __construct(ProxyFactory $proxyFactory)
37
37
/**
38
38
* @param CacheItemPoolInterface $originalObject original class
39
39
*
40
- * @return CacheProxy |CacheItemPoolInterface
40
+ * @return CacheProxyInterface |CacheItemPoolInterface
41
41
*/
42
42
public function create ($ originalObject )
43
43
{
44
44
$ proxyClass = $ this ->proxyFactory ->createProxy (get_class ($ originalObject ));
45
- $ rc = new \ReflectionClass ($ proxyClass );
46
- $ pool = $ rc ->newInstanceWithoutConstructor ();
45
+ $ reflection = new \ReflectionClass ($ proxyClass );
46
+ $ pool = $ reflection ->newInstanceWithoutConstructor ();
47
47
48
48
// Copy properties from original pool to new
49
49
foreach (NSA ::getProperties ($ originalObject ) as $ property ) {
Original file line number Diff line number Diff line change 9
9
* with this source code in the file LICENSE.
10
10
*/
11
11
12
- use Cache \CacheBundle \DataCollector \CacheProxy ;
12
+ use Cache \CacheBundle \DataCollector \CacheProxyInterface ;
13
13
use Cache \CacheBundle \DataCollector \TraceableAdapterEvent ;
14
14
use Psr \Cache \CacheItemInterface ;
15
15
16
- class __TPL_CLASS__ extends __TPL_EXTENDS__ implements CacheProxy
16
+ class __TPL_CLASS__ extends __TPL_EXTENDS__ implements CacheProxyInterface
17
17
{
18
18
private $ __name ;
19
19
private $ __calls = [];
@@ -168,10 +168,10 @@ public function __setName($name)
168
168
169
169
private function start ($ name , $ argument = null )
170
170
{
171
- $ this ->__calls [] = $ event = new TraceableAdapterEvent ();
172
- $ event ->name = $ name ;
173
- $ event ->argument = $ argument ;
174
- $ event ->start = microtime (true );
171
+ $ this ->__calls [] = $ event = new TraceableAdapterEvent ();
172
+ $ event ->name = $ name ;
173
+ $ event ->argument = $ argument ;
174
+ $ event ->start = microtime (true );
175
175
176
176
return $ event ;
177
177
}
You can’t perform that action at this time.
0 commit comments