Completed
Push — master ( bc20b4...b7ce52 )
by Nate
03:15
created

VirtualProperty::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
crap 1
1
<?php
2
/*
3
 * Copyright (c) Nate Brunette.
4
 * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5
 */
6
7
namespace Tebru\Gson\Annotation;
8
9
use Tebru\AnnotationReader\AbstractAnnotation;
10
11
/**
12
 * Class VirtualProperty
13
 *
14
 * This allows a method to be used as a property during serialization only. This
15
 * is helpful if your serialized models need to contain extra properties.  For example,
16
 * an aggregate of two separate properties on the model.
17
 *
18
 * @author Nate Brunette <[email protected]>
19
 * @Annotation
20
 * @Target({"METHOD"})
21
 */
22
class VirtualProperty extends AbstractAnnotation
23
{
24
    /**
25
     * Initialize annotation data
26
     */
27 1
    protected function init(): void
28
    {
29 1
    }
30
}
31