ParentAssociationMapping   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 7
c 1
b 0
f 1
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace KunicMarko\SonataAnnotationBundle\Annotation;
6
7
/**
8
 * @Annotation
9
 * @Target("PROPERTY")
10
 *
11
 * @author Marko Kunic <[email protected]>
12
 */
13
final class ParentAssociationMapping implements AnnotationInterface
14
{
15
    public function __construct()
16
    {
17
        @trigger_error(
18
            sprintf(
19
                'The "%s" annotation is deprecated since 1.1, to be removed in 2.0. Use %s instead.',
20
                self::class,
21
                AddChild::class
22
            ),
23
            E_USER_DEPRECATED
24
        );
25
    }
26
}
27