Failed Conditions
Pull Request — experimental/3.1 (#2532)
by Kentaro
34:08 queued 17:05
created

ForwardOnly::getAliasName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Eccube\Annotation;
4
5
use Doctrine\Common\Annotations\Annotation\Target;
6
use Doctrine\ORM\Mapping\Annotation;
7
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ConfigurationInterface;
8
9
10
/**
11
 * @Annotation
12
 * @Target("METHOD")
13
 */
14
final class ForwardOnly implements ConfigurationInterface
15
{
16
    /**
17
     * Returns the alias name for an annotated configuration.
18
     *
19
     * @return string
20
     */
21 18
    public function getAliasName()
22
    {
23 18
        return 'forward_only';
24
    }
25
26
    /**
27
     * Returns whether multiple annotations of this type are allowed.
28
     *
29
     * @return bool
30
     */
31 18
    public function allowArray()
32
    {
33 18
        return false;
34
    }
35
}
36