Passed
Pull Request — main (#155)
by Daniel
05:12
created

PurgeHttpCacheListener::gatherRelationResourceClasses()   A

Complexity

Conditions 5
Paths 4

Size

Total Lines 12
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 30

Importance

Changes 0
Metric Value
cc 5
eloc 9
nc 4
nop 2
dl 0
loc 12
ccs 0
cts 9
cp 0
crap 30
rs 9.6111
c 0
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