Repository   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 18
c 0
b 0
f 0
rs 10
ccs 0
cts 7
cp 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getStorage() 0 3 1
A getName() 0 3 1
1
<?php
2
/**
3
 * Created by IntelliJ IDEA.
4
 * User: gerk
5
 * Date: 04.01.17
6
 * Time: 06:28
7
 */
8
9
namespace PeekAndPoke\Component\Slumber\Annotation\Slumber;
10
11
use Doctrine\Common\Annotations\Annotation;
12
13
/**
14
 * @Annotation
15
 * @Annotation\Target("CLASS")
16
 *
17
 * @author Karsten J. Gerber <[email protected]>
18
 */
19
class Repository extends Annotation
20
{
21
    /**
22
     * @var string The name of the storage holding the repository
23
     */
24
    public $storage = 'default';
25
26
    public function getName()
27
    {
28
        return (string) $this->value;
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getStorage()
35
    {
36
        return $this->storage;
37
    }
38
}
39