GlobalDefaultsClass::noName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php declare(strict_types=1);
2
3
/*
4
 * This file is part of Flight Routing.
5
 *
6
 * PHP version 8.0 and above required
7
 *
8
 * @author    Divine Niiquaye Ibok <[email protected]>
9
 * @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
10
 * @license   https://opensource.org/licenses/BSD-3-Clause License
11
 *
12
 * For the full copyright and license information, please view the LICENSE
13
 * file that was distributed with this source code.
14
 */
15
16
namespace Flight\Routing\Tests\Fixtures\Annotation\Route\Attribute;
17
18
use Flight\Routing\Annotation\Route;
19
20
#[Route(path: '/defaults/{locale}', name: 'attribute_', defaults: ['foo' => 'bar'], where: ['locale' => 'en|fr'])]
21
class GlobalDefaultsClass
22
{
23
    #[Route(path: '/specific-name', name: 'specific_name', methods: ['GET'])]
24
    public function withName(): void
25
    {
26
    }
27
28
    #[Route('/specific-none', methods: ['GET', 'HEAD'])]
29
    public function noName(): void
30
    {
31
    }
32
}
33