ScalarProcessor   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

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