Completed
Push — master ( 05aed6...998c1c )
by Jesse
05:22
created

NullValue   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 6
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A value() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Stratadox\Hydration\Mapping\Property\Type;
5
6
/**
7
 * Maps whatever you give it to null in an object property.
8
 *
9
 * @package Stratadox\Hydrate
10
 * @author  Stratadox
11
 */
12
final class NullValue extends ScalarValue
13
{
14
    /** @inheritdoc */
15
    public function value(array $data, $owner = null)
16
    {
17
        return null;
18
    }
19
}
20