Failed Conditions
Push — master ( a26426...65249a )
by Arnold
14:53 queued 04:44
created

Query::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 4
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace Jasny\Controller\Parameter;
4
5
use Psr\Http\Message\ServerRequestInterface;
6
7
#[\Attribute]
8
class Query implements Parameter
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class Query
Loading history...
9
{
10
    /**
0 ignored issues
show
Coding Style introduced by
Parameter $request should have a doc-comment as per coding-style.
Loading history...
Coding Style introduced by
Parameter $name should have a doc-comment as per coding-style.
Loading history...
Coding Style introduced by
Parameter $type should have a doc-comment as per coding-style.
Loading history...
Coding Style introduced by
Parameter $required should have a doc-comment as per coding-style.
Loading history...
11
     * Get all query parameters.
12
     *
13
     * @return array<string,mixed>
14
     */
15
    public function getValue(ServerRequestInterface $request, string $name, ?string $type, bool $required = false): array
16
    {
17
        return $request->getQueryParams();
18
    }
19
}
20