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

NullProcessor   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A hydrate() 0 4 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