HydratorGenerator
last analyzed

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
ccs 0
cts 0
cp 0

1 Method

Rating   Name   Duplication   Size   Complexity  
generate() 0 1 ?
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GeneratedHydrator\ClassGenerator;
6
7
use PhpParser\Node;
8
use ReflectionClass;
9
10
/**
11
 * Interface for the hydrator generator
12
 */
13
interface HydratorGenerator
14
{
15
    /**
16
     * Generates an AST of {@see \PhpParser\Node[]} out of a given reflection class
17
     *
18
     * @return Node[]
19
     */
20
    public function generate(ReflectionClass $originalClass) : array;
21
}
22