Passed
Branch master (203e41)
by Nate
01:56
created

QueryName   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A allowMultiple() 0 4 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
 * Query parameter appended to the URL
13
 *
14
 * Use this annotation if the query parameter does not have a value
15
 *
16
 * @author Nate Brunette <[email protected]>
17
 *
18
 * @Annotation
19
 * @Target({"CLASS", "METHOD"})
20
 */
21
class QueryName extends Encodable
22
{
23
    /**
24
     * Whether or not multiple annotations of this type can
25
     * be added to a method
26
     *
27
     * @return bool
28
     */
29 1
    public function allowMultiple(): bool
30
    {
31 1
        return true;
32
    }
33
}
34