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

PurgeHttpCacheListener::purgeCollectionResources()   A

Complexity

Conditions 5
Paths 7

Size

Total Lines 22
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 30

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 5
eloc 12
nc 7
nop 0
dl 0
loc 22
ccs 0
cts 12
cp 0
crap 30
rs 9.5555
c 1
b 0
f 1
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