Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | protected function createResult(string $url, Mapper $mapper, bool $relations) |
||
46 | { |
||
47 | $content = $this->fetchContentAsArray($url); |
||
48 | |||
49 | $this->throwEmptyContentExceptionIfEmpty($content); |
||
50 | |||
51 | $config = $mapper->config(); |
||
52 | $data = $mapper->getData($content, $config); |
||
53 | |||
54 | return $mapper->createModel($data, $config, $relations); |
||
55 | } |
||
63 | } |