Completed
Push — standalone ( e35bae...444422 )
by Philip
23:36
created

Method::create()   B

Complexity

Conditions 6
Paths 6

Size

Total Lines 16
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 10.5

Importance

Changes 0
Metric Value
dl 0
loc 16
ccs 6
cts 12
cp 0.5
rs 8.8571
c 0
b 0
f 0
cc 6
eloc 13
nc 6
nop 1
crap 10.5
1
<?php
2
3
namespace Dontdrinkandroot\RestBundle\Metadata\Annotation;
4
5
use Doctrine\Common\Annotations\Annotation\Required;
6
7
/**
8
 * @author Philip Washington Sorst <[email protected]>
9
 *
10
 * @Annotation
11
 * @Target({"ANNOTATION"})
12
 */
13
class Method
14
{
15
    const LIST = 'LIST';
16
    const POST = 'POST';
17
    const GET = 'GET';
18
    const PUT = 'PUT';
19
    const DELETE = 'DELETE';
20 18
21
    /**
22
     * @Required()
23 18
     * @var string
24 16
     */
25 4
    public $name;
26
27 4
    /**
28 4
     * @var \Dontdrinkandroot\RestBundle\Metadata\Annotation\Right
29
     */
30
    public $right;
31
32
    /**
33
     * @var array<string>
34
     */
35
    public $defaultIncludes;
36
}
37