Repository::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
ccs 0
cts 3
cp 0
cc 1
eloc 1
nc 1
nop 0
crap 2
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