| Total Complexity | 1 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Route implements AnnotationInterface |
||
| 14 | { |
||
| 15 | public const ID_PARAMETER = '{id}'; |
||
| 16 | private const DEFAULT_METHOD = 'add'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | public $name; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | public $path; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | public $method = self::DEFAULT_METHOD; |
||
| 32 | |||
| 33 | public function shouldAddRoute(): bool |
||
| 38 |