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

ForwardOnly   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 22
ccs 4
cts 4
cp 1
rs 10
c 1
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getAliasName() 0 4 1
A allowArray() 0 4 1
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