($id)
| 87 | } |
| 88 | |
| 89 | public function getReportByThreshold($id) |
| 90 | { |
| 91 | $sql = $this->db->getQueryBuilder(); |
| 92 | $sql->from(self::TABLE_NAME) |
| 93 | ->select('report') |
| 94 | ->where($sql->expr()->eq('id', $sql->createNamedParameter($id))); |
| 95 | return (int)$sql->executeQuery()->fetchOne(); |
| 96 | } |
| 97 | |
| 98 | public function getOwnReportByThreshold(int $id): int { |
| 99 | $sql = $this->db->getQueryBuilder(); |