Completed
Push — caching ( 6c9b2f )
by Nate
03:39
created

ExclusionStrategy::allowMultiple()   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 0
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\Gson\Annotation;
10
11
use Tebru\AnnotationReader\AbstractAnnotation;
12
13
/**
14
 * Class ExclusionStrategy
15
 *
16
 * Use this annotation to exclude serialization or deserialization of a property
17
 * that would otherwise be included.
18
 *
19
 * @author Nate Brunette <[email protected]>
20
 *
21
 * @Annotation
22
 * @Target({"CLASS", "PROPERTY", "METHOD"})
23
 */
24
class ExclusionStrategy extends AbstractAnnotation
25
{
26
    /**
27
     * Returns true if multiple annotations of this type are allowed
28
     *
29
     * @return bool
30
     */
31
    public function allowMultiple(): bool
32
    {
33
        return true;
34
    }
35
}
36