RouteWithPrefixController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A actionTwo() 0 2 1
A action() 0 2 1
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\Valid;
17
18
use Flight\Routing\Annotation\Route;
19
20
/**
21
 * @Route("/prefix", name="do.", hosts="biurad.com")
22
 */
23
class RouteWithPrefixController
24
{
25
    /**
26
     * @Route("/path", methods={"GET", "POST"}, name="action")
27
     */
28
    public function action(): void
29
    {
30
    }
31
32
    /**
33
     * @Route("/path_two", methods={"GET", "POST"}, name="action_two")
34
     */
35
    public function actionTwo(): void
36
    {
37
    }
38
}
39