QueryMap::allowMultiple()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/*
3
 * Copyright (c) Nate Brunette.
4
 * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5
 */
6
7
declare(strict_types=1);
8
9
namespace Tebru\Retrofit\Annotation;
10
11
/**
12
 * Represents a collection of @Query annotations
13
 *
14
 * The default value specifies the variable name in the method signature.
15
 *
16
 * Any iterable may be passed as an argument. Keys of the map will be the query
17
 * names, and the values will be handled exactly the same as as @Query.
18
 *
19
 * @author Nate Brunette <[email protected]>
20
 *
21
 * @Annotation
22
 * @Target({"CLASS", "METHOD"})
23
 */
24
class QueryMap extends Encodable
25
{
26
    /**
27
     * Returns true if multiple annotations of this type are allowed
28
     *
29
     * @return bool
30
     */
31 4
    public function allowMultiple(): bool
32
    {
33 4
        return true;
34
    }
35
}
36