| Total Complexity | 5 |
| Total Lines | 40 |
| 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 | * @throws \ReflectionException |
||
| 24 | * @throws \BadMethodCallException |
||
| 25 | */ |
||
| 26 | public function hydrate(ResponseInterface $response, string $class = null) |
||
| 56 |