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

AbstractManagerRegistry::getConnection()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 11
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 12

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 11
rs 10
ccs 0
cts 6
cp 0
cc 3
nc 4
nop 1
crap 12
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\AbstractManagerRegistry::class, false)) {
12
    @trigger_error(sprintf(
13
        'The %s\AbstractManagerRegistry class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
14
        . ' Use \Doctrine\Persistence\AbstractManagerRegistry instead.',
15
        __NAMESPACE__
16
    ), E_USER_DEPRECATED);
17
}
18
19
class_alias(
20
    \Doctrine\Persistence\AbstractManagerRegistry::class,
21
    __NAMESPACE__ . '\AbstractManagerRegistry'
22
);
23
24
if (false) {
25
    /**
26
     * @deprecated 1.3 Use Doctrine\Persistence\AbstractManagerRegistry
27
     */
28
    abstract class AbstractManagerRegistry extends \Doctrine\Persistence\AbstractManagerRegistry
29
    {
30
    }
31
}
32