Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function execute() |
||
29 | { |
||
30 | $link = $this->dom->getElementsByClass('.event')->getAttribute('href'); |
||
31 | |||
32 | $this->config->setUrl($link); |
||
33 | |||
34 | $body = (new Transporter())->execute( |
||
35 | new Query(new Strategy($this->config)) |
||
36 | ); |
||
37 | |||
38 | $dom = $this->dom->load($body); |
||
39 | |||
40 | return array_map(function ($elem) use ($dom) { |
||
41 | return (new $elem())->find($dom); |
||
42 | }, $this->config->getDetailProviders()); |
||
43 | } |
||
44 | } |
||
45 |