AsId   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A validate() 0 4 1
1
<?php
2
/**
3
 * File was created 11.02.2016 06:06
4
 */
5
6
namespace PeekAndPoke\Component\Slumber\Annotation\Slumber\Store;
7
8
use Doctrine\Common\Annotations\Annotation;
9
use PeekAndPoke\Component\Slumber\Annotation\PropertyStorageMarker;
10
use PeekAndPoke\Component\Slumber\Core\Exception\SlumberException;
11
use PeekAndPoke\Component\Slumber\Core\Validation\ValidationContext;
12
13
/**
14
 * Id defines the primary identifier in an entity held in a storage like MongoDb
15
 *
16
 * @Annotation
17
 * @Annotation\Target("PROPERTY")
18
 *
19
 * @author Karsten J. Gerber <[email protected]>
20
 */
21
class AsId implements PropertyStorageMarker
22
{
23
    /**
24
     * Initialize the annotation and validate the given parameters
25
     *
26
     * @param ValidationContext $context
27
     *
28
     * @throws SlumberException
29
     */
30
    public function validate(ValidationContext $context)
31
    {
32
        // noop
33
    }
34
}
35