Passed
Pull Request — master (#514)
by Fabien
10:39
created

BaseEvent

Complexity

Total Complexity 0

Size/Duplication

Total Lines 2
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 1
c 2
b 0
f 0
dl 0
loc 2
ccs 0
cts 0
cp 0
wmc 0
1
<?php
2
3
/*
4
 * This file is part of the FOSHttpCache package.
5
 *
6
 * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
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
namespace FOS\HttpCache;
13
14
use Symfony\Component\EventDispatcher\Event as OldEvent;
15
use Symfony\Contracts\EventDispatcher\Event as ContractEvent;
16
17 1
if (class_exists(ContractEvent::class)) {
18
    class BaseEvent extends ContractEvent
19
    {
20
    }
21
} else {
22
    /**
23
     * @codeCoverageIgnore
24
     * @ignore This is purely for 3.4 comparability.
25
     */
26
    class BaseEvent extends OldEvent
27
    {
28
    }
29
}
30