ScalarProcessor::__construct()   A
last analyzed

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
use KleijnWeb\PhpApi\Descriptions\Description\Schema\ScalarSchema;
12
use KleijnWeb\PhpApi\Hydrator\Processors\Processor;
13
14
/**
15
 * @author John Kleijn <[email protected]>
16
 */
17
abstract class ScalarProcessor extends Processor
18
{
19
    public function __construct(ScalarSchema $schema)
20
    {
21
        parent::__construct($schema);
22
    }
23
24
    /**
25
     * @param mixed $value
26
     * @return mixed
27
     */
28
    public function dehydrate($value)
29
    {
30
        return $value;
31
    }
32
}
33