Completed
Pull Request — master (#5)
by John
01:37
created

NullProcessor::hydrate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of the KleijnWeb\PhpApi\Hydrator package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace KleijnWeb\PhpApi\Hydrator\Processors\Scalar;
10
11
/**
12
 * @author John Kleijn <[email protected]>
13
 */
14
class NullProcessor extends ScalarProcessor
15
{
16
    /**
17
     * @param $value
18
     * @return null
19
     */
20
    public function hydrate($value)
21
    {
22
        return null;
23
    }
24
}
25