Passed
Pull Request — master (#9)
by Vincent
05:08 queued 01:37
created

NullAccessor   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 15
ccs 2
cts 2
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A write() 0 2 1
A read() 0 3 1
1
<?php
2
3
namespace Bdf\Serializer\PropertyAccessor;
4
5
/**
6
 * NullAccessor
7
 */
8
class NullAccessor implements PropertyAccessorInterface
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function write($object, $value)
14
    {
15
    }
16
17
    /**
18
     * {@inheritdoc}
19
     */
20 2
    public function read($object)
21
    {
22 2
        return null;
23
    }
24
}
25