| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function getSchedule(): Schedule |
||
| 19 | { |
||
| 20 | $store = new SemaphoreStore(); |
||
| 21 | $factory = new LockFactory($store); |
||
| 22 | |||
| 23 | return $this->schedule ??= (new Schedule()) |
||
|
|
|||
| 24 | ->with( |
||
| 25 | RecurringMessage::cron( |
||
| 26 | '00 8 * * 1', |
||
| 27 | new UpdateYoutubeData() |
||
| 28 | ) |
||
| 29 | ) |
||
| 30 | ->lock($factory->createLock('update-youtube-data')); |
||
| 31 | } |
||
| 33 |