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

VirtualProperty   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0

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
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