Completed
Push — master ( 2cee6a...9d457f )
by Jesse
03:27
created

ArrayHydrator::currentInstance()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Stratadox\Hydration\Hydrator;
6
7
use Stratadox\Hydration\Hydrates;
8
9
/**
10
 * Hydrates an array. Since the input is already array, do nothing, really.
11
 *
12
 * @package Stratadox\Hydrate
13
 * @author Stratadox
14
 */
15
final class ArrayHydrator implements Hydrates
16
{
17
    public static function create() : Hydrates
18
    {
19
        return new ArrayHydrator;
20
    }
21
22
    public function fromArray(array $input)
23
    {
24
        return $input;
25
    }
26
27
    public function currentInstance() {}
28
}
29