Completed
Push — master ( 841bb5...43701d )
by Nate
09:20
created

SerializationContext::allowMultiple()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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