| Conditions | 1 |
| Paths | 1 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 30 | public function findAllIdsWithNoUpdateSince(string $userId, \DateTime $timeLimit) : array { |
||
| 31 | $sql = "SELECT `id` FROM `{$this->getTableName()}` WHERE `user_id` = ? AND `update_checked` < ?"; |
||
| 32 | $result = $this->execute($sql, [$userId, $timeLimit->format(BaseMapper::SQL_DATE_FORMAT)]); |
||
| 33 | |||
| 34 | return \array_map('intval', $result->fetchAll(\PDO::FETCH_COLUMN)); |
||
| 35 | } |
||
| 47 |