Failed Conditions
Pull Request — 1.3.x (#71)
by Grégoire
02:19
created

ObjectManagerDecorator

Complexity

Total Complexity 0

Size/Duplication

Total Lines 2
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 0
eloc 1
c 1
b 0
f 0
dl 0
loc 2
ccs 0
cts 0
cp 0
1
<?php
2
3
namespace Doctrine\Common\Persistence;
4
5
use const E_USER_DEPRECATED;
6
use function class_alias;
7
use function class_exists;
8
use function sprintf;
9
use function trigger_error;
10
11
if (! class_exists(\Doctrine\Persistence\ObjectManagerDecorator::class, false)) {
12
    @trigger_error(sprintf(
13
        'The %s\ObjectManagerDecorator class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
14
        . ' Use \Doctrine\Persistence\ObjectManagerDecorator instead.',
15
        __NAMESPACE__
16
    ), E_USER_DEPRECATED);
17
}
18
19
class_alias(
20
    \Doctrine\Persistence\ObjectManagerDecorator::class,
21
    __NAMESPACE__ . '\ObjectManagerDecorator'
22
);
23
24
if (false) {
25
    /**
26
     * @deprecated 1.3 Use Doctrine\Persistence\ObjectManagerDecorator
27
     */
28
    abstract class ObjectManagerDecorator extends \Doctrine\Persistence\ObjectManagerDecorator
29
    {
30
    }
31
}
32