HydratorGenerator::generate()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
ccs 0
cts 0
cp 0
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