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

ExclusionStrategy   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A allowMultiple() 0 3 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\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