| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | #[Attribute(Attribute::TARGET_CLASS)] |
||
| 24 | final class AddRoute extends AbstractAnnotation implements |
||
| 25 | RouteAnnotationInterface |
||
| 26 | { |
||
| 27 | |||
| 28 | public const ID_PARAMETER = '{id}'; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Route name. |
||
| 32 | * |
||
| 33 | * @var string|null |
||
| 34 | */ |
||
| 35 | public ?string $name = null; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Route path. |
||
| 39 | * |
||
| 40 | * @var string|null |
||
| 41 | */ |
||
| 42 | public ?string $path = null; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param string|array|null $name Route name or annotation parameters. |
||
| 46 | * @param string|null $path Route path. |
||
| 47 | * |
||
| 48 | * @throws ReflectionException |
||
| 49 | */ |
||
| 50 | public function __construct( |
||
| 64 |