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