| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function collect(): PromiseInterface |
||
| 25 | { |
||
| 26 | $wrapPromise = new Promise( |
||
| 27 | function () use (&$wrapPromise) { |
||
| 28 | $periodicalActivity = $this->getFacade()->generateActivityToDate(date('Y-m-d 00:00')); |
||
| 29 | $wrapPromise->resolve($periodicalActivity); |
||
| 30 | } |
||
| 31 | ); |
||
| 32 | |||
| 33 | return $wrapPromise; |
||
| 34 | } |
||
| 36 |