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

JsonAdapter::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 8
Ratio 100 %

Code Coverage

Tests 5
CRAP Score 2

Importance

Changes 0
Metric Value
dl 8
loc 8
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 1
crap 2
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 JsonAdapter
13
 *
14
 * Use this annotation to define a custom TypeAdapter for a class or property.  This annotation
15
 * cannot be used if the type of a property is ambiguous.  For example, if defined on a scalar
16
 * property that doesn't define an @Type annotation or provide an accessor with a type hint.
17
 *
18
 * The type adapter class should not be defined with any constructor arguments
19
 *
20
 * This annotation can point to a TypeAdapter, TypeAdapterFactory, JsonSerializer, or JsonDeserializer.
21
 *
22
 * @author Nate Brunette <[email protected]>
23
 *
24
 * @Annotation
25
 * @Target({"CLASS", "PROPERTY", "METHOD"})
26
 */
27
class JsonAdapter extends AbstractAnnotation
28
{
29
}
30