Completed
Push — master ( 638b8d...de83b5 )
by John
01:47 queued 17s
created

Processor   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
hydrate() 0 1 ?
dehydrate() 0 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;
10
11
use KleijnWeb\PhpApi\Descriptions\Description\Schema\Schema;
12
13
/**
14
 * @author John Kleijn <[email protected]>
15
 */
16
abstract class Processor
17
{
18
    /**
19
     * @var Schema
20
     */
21
    protected $schema;
22
23
    /**
24
     * Hydrator constructor.
25
     * @param Schema $schema
26
     */
27
    public function __construct(Schema $schema)
28
    {
29
        $this->schema = $schema;
30
    }
31
32
    /**
33
     * @param mixed $value
34
     * @return mixed
35
     */
36
    abstract public function hydrate($value);
37
38
    /**
39
     * @param mixed $value
40
     * @return mixed
41
     */
42
    abstract public function dehydrate($value);
43
}
44