Completed
Push — master ( 7e748b...ca1854 )
by Karsten
02:03
created

AsList::validate()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 15
Code Lines 9

Duplication

Lines 15
Ratio 100 %

Code Coverage

Tests 4
CRAP Score 2.3149

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 15
loc 15
ccs 4
cts 7
cp 0.5714
rs 9.4285
cc 2
eloc 9
nc 2
nop 1
crap 2.3149
1
<?php
2
/**
3
 * File was created 30.09.2015 10:49
4
 */
5
6
namespace PeekAndPoke\Component\Slumber\Annotation\Slumber;
7
8
use Doctrine\Common\Annotations\Annotation;
9
10
/**
11
 * AsList treats the nested elements as a list.
12
 *
13
 * Keys are NOT preserved and are removed.
14
 *
15
 * The result of slumbering will look like:
16
 *
17
 * Input:
18
 * <code>
19
 *   array ( 'a' => 'A', 'b' => 'B' )
20
 * </code>
21
 *
22
 * Output:
23
 * <code>
24
 *   [ 'A', 'B' ]
25
 * </code>
26
 *
27
 * @Annotation
28
 * @Annotation\Target("PROPERTY")
29
 *
30
 * @author Karsten J. Gerber <[email protected]>
31
 */
32
class AsList extends AsCollection
33
{
34
}
35