Passed
Push — develop ( ded98c...5fca67 )
by Mathieu
02:55
created

AddRoute::getName()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 6
c 0
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 route annotation.
9
 *
10
 * Add custom route to your admin class.
11
 *
12
 * @Annotation
13
 * @Target("CLASS")
14
 *
15
 * @author Marko Kunic <[email protected]>
16
 * @author Mathieu Wambre <[email protected]>
17
 */
18
final class AddRoute implements AnnotationInterface
19
{
20
    public const ID_PARAMETER = '{id}';
21
22
    /**
23
     * Route name.
24
     *
25
     * @var string
26
     */
27
    public string $name;
28
29
    /**
30
     * Route path.
31
     *
32
     * @var string
33
     */
34
    public string $path;
35
}
36