Completed
Push — master ( 6e1c48...7d90f1 )
by John
03:00
created

Processor::hydrate()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
nc 1
1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of the KleijnWeb\PhpApi\Descriptions\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\Descriptions\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