Passed
Push — develop ( 8812ee...71fa6a )
by Mathieu
11:18
created

AddChild::getField()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 10
rs 10
cc 2
nc 2
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace KunicMarko\SonataAnnotationBundle\Annotation;
6
7
/**
8
 * Add child admin to current admin class or admin annotated model.
9
 *
10
 * @Annotation
11
 * @Target("CLASS")
12
 *
13
 * @author Marko Kunic <[email protected]>
14
 * @author Mathieu Wambre <[email protected]>
15
 */
16
final class AddChild implements AnnotationInterface
17
{
18
    /**
19
     * Child model class.
20
     *
21
     * @var string
22
     */
23
    public string $class;
24
25
    /**
26
     * Reverse field.
27
     *
28
     * @var string
29
     */
30
    public string $field;
31
}
32