MCPcopy Create free account
hub / github.com/Rello/analytics / getOwnReportByThreshold

Method getOwnReportByThreshold

lib/Db/ThresholdMapper.php:98–105  ·  view source on GitHub ↗
(int $id)

Source from the content-addressed store, hash-verified

96 }
97
98 public function getOwnReportByThreshold(int $id): int {
99 $sql = $this->db->getQueryBuilder();
100 $sql->from(self::TABLE_NAME)
101 ->select('report')
102 ->where($sql->expr()->eq('id', $sql->createNamedParameter($id)))
103 ->andWhere($sql->expr()->eq('user_id', $sql->createNamedParameter($this->userId)));
104 return (int)$sql->executeQuery()->fetchOne();
105 }
106
107 /**
108 * @throws Exception

Callers 2

deleteMethod · 0.80
reorderMethod · 0.80

Calls 1

eqMethod · 0.80

Tested by

no test coverage detected