Passed
Push — main ( c28b1c...6868cf )
by Daniel
04:09
created

PurgeHttpCacheListener::preUpdate()   A

Complexity

Conditions 4
Paths 6

Size

Total Lines 19
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 20

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 4
eloc 11
nc 6
nop 1
dl 0
loc 19
ccs 0
cts 12
cp 0
crap 20
rs 9.9
c 1
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the Silverback API Components Bundle Project
5
 *
6
 * (c) Daniel West <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Silverback\ApiComponentsBundle\EventListener\Doctrine;
15
16
/**
17
 * Purges desired resources on when doctrine is flushed from the proxy cache.
18
 * Will purge resources with related mapping too.
19
 *
20
 * @author Daniel West <[email protected]>
21
 *
22
 * @experimental
23
 */
24
class PurgeHttpCacheListener implements DoctrineResourceFlushListenerInterface
25
{
26
    use DoctrineResourceFlushTrait;
27
}
28