| Total Complexity | 4 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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) |
||
| 35 | { |
||
| 36 | $class = $this->class; |
||
| 40 |