Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class ModelHydrator extends AbstractHydrator |
||
15 | { |
||
16 | const METHOD_CREATE = '::create'; |
||
17 | |||
18 | /** |
||
19 | * @param \Psr\Http\Message\ResponseInterface $response Response to hydrate. |
||
20 | * @param string|null $class Class for hydration. |
||
21 | * |
||
22 | * @return \IBM\Watson\Common\Model\CreatableFromArray |
||
23 | * |
||
24 | * @throws \ReflectionException |
||
25 | * @throws \BadMethodCallException |
||
26 | */ |
||
27 | public function hydrate(ResponseInterface $response, string $class = null) |
||
58 |