ParentAssociationMapping::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 9
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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