Completed
Push — ezp25003-trash_subitems_count_... ( c4ee15 )
by
unknown
27:39
created

TrashSlot::supports()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/**
4
 * This file is part of the eZ Publish Kernel package.
5
 *
6
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
7
 * @license For full copyright and license information view LICENSE file distributed with this source code.
8
 *
9
 * @version //autogentag//
10
 */
11
namespace eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot;
12
13
use eZ\Publish\Core\SignalSlot\Signal;
14
15
/**
16
 * A slot handling TrashSignal.
17
 */
18
class TrashSlot extends PurgeAllHttpCacheSlot
19
{
20
    protected function supports(Signal $signal)
21
    {
22
        return $signal instanceof Signal\TrashService\TrashSignal;
23
    }
24
}
25