Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | final class VariadicConstructor implements Hydrates |
||
14 | { |
||
15 | private $class; |
||
16 | |||
17 | private function __construct(string $forTheClass) |
||
18 | { |
||
19 | $this->class = $forTheClass; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Creates a new variadic constructor calling hydrator. |
||
24 | * |
||
25 | * @param string $class The class to hydrate. |
||
26 | * @return self The variadic construction calling hydrator. |
||
27 | */ |
||
28 | public static function forThe(string $class) : self |
||
31 | } |
||
32 | |||
33 | /** @inheritdoc */ |
||
34 | public function fromArray(array $input) |
||
38 | } |
||
39 | } |
||
40 |