aboutsummaryrefslogtreecommitdiff
path: root/tests/Fixtures/OnlyGetController.php
blob: 0ab18f414f8cae1311a282226dee24857ed37236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

declare(strict_types=1);

namespace BrettParson\MiniRoute\Tests\Fixtures;

use BrettParson\MiniRoute\Attribute\Get;
use BrettParson\MiniRoute\Http\ResponseInterface;

/**
 * A single GET route, used to probe method handling: POST and HEAD on the
 * same path (v0.1.0 baselines; see miniroute-uhs.2 / miniroute-uhs.3).
 */
final class OnlyGetController
{
    #[Get('/only')]
    public function get(): ResponseInterface
    {
        return new TestResponse(200, 'only-get');
    }
}