Completed
Branch master (19b0aa)
by Nate
07:03 queued 04:40
created

FormUrlEncoded::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*
3
 * Copyright (c) 2015 Nate Brunette.
4
 * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5
 */
6
7
namespace Tebru\Retrofit\Annotation;
8
9
use Tebru\Dynamo\Annotation\DynamoAnnotation;
10
11
/**
12
 * Indicates that the body of the request should be application/x-www-form-urlencoded
13
 *
14
 * @author Nate Brunette <[email protected]>
15
 *
16
 * @Annotation
17
 * @Target({"CLASS", "METHOD"})
18
 */
19
class FormUrlEncoded implements DynamoAnnotation
20
{
21
    const NAME = 'form_urlencoded';
22
23
    /**
24
     * The name of the annotation or class of annotations
25
     *
26
     * @return string
27
     */
28
    public function getName()
29
    {
30
        return self::NAME;
31
    }
32
33
    /**
34
     * Whether or not multiple annotations of this type can
35
     * be added to a method
36
     *
37
     * @return bool
38
     */
39
    public function allowMultiple()
40
    {
41
        return false;
42
    }
43
}
44