ReadOnly   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A getValue() 0 4 1
1
<?php
2
3
namespace Happyr\SerializerBundle\Annotation;
4
5
/**
6
 * @Annotation
7
 * @Target({"PROPERTY", "CLASS"})
8
 *
9
 * @author Tobias Nyholm <[email protected]>
10
 */
11
final class ReadOnly implements SerializerAnnotation
12
{
13
    /**
14
     * @var bool
15
     */
16
    public $value = true;
17
18 23
    public function getName()
19
    {
20 23
        return 'read_only';
21
    }
22
23 23
    public function getValue()
24
    {
25 23
        return $this->value;
26
    }
27
}
28