Query   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 7 1
1
<?php
2
3
namespace Jasny\Controller\Parameter;
4
5
use Psr\Http\Message\ServerRequestInterface;
6
7
#[\Attribute]
8
class Query implements Parameter
9
{
10
    /**
11
     * Get all query parameters.
12
     *
13
     * @return array<string,mixed>
14
     */
15
    public function getValue(
16
        ServerRequestInterface $request,
17
        string $name,
18
        ?string $type,
19
        bool $required = false
20
    ): array {
21
        return $request->getQueryParams();
22
    }
23
}
24