Since   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 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 Since
15
 *
16
 * Used to exclude classes or properties that should not be serialized if the version number
17
 * is less than the @Since value.  Will not be used if version number is not defined on the
18
 * builder.
19
 *
20
 * @author Nate Brunette <[email protected]>
21
 *
22
 * @Annotation
23
 * @Target({"CLASS", "PROPERTY", "METHOD"})
24
 */
25
class Since extends AbstractAnnotation
26
{
27
    /**
28
     * Initialize annotation data
29
     */
30 2
    protected function init(): void
31
    {
32 2
        $this->value = (string)$this->getValue();
33 1
    }
34
}
35