| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 2 | public function sendNotifications( |
|
| 23 | array $channelNames, |
||
| 24 | NotifierPolicy $policy, |
||
| 25 | int $maxNewsToFetch = self::DEFAULT_MAX_NEWS_TO_FETCH, |
||
| 26 | ): NotifyResult { |
||
| 27 | 2 | $channels = $this->getFactory() |
|
| 28 | 2 | ->createChannels($channelNames); |
|
| 29 | |||
| 30 | 2 | $crawlResult = $this->crawlStock($policy->symbols(), $maxNewsToFetch); |
|
| 31 | |||
| 32 | 2 | return $this->getFactory() |
|
| 33 | 2 | ->createNotifier($policy, ...$channels) |
|
| 34 | 2 | ->notify($crawlResult); |
|
| 35 | } |
||
| 52 |