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

Method deleteThreshold

lib/Db/ThresholdMapper.php:125–133  ·  view source on GitHub ↗

* @throws Exception */

($thresholdId)

Source from the content-addressed store, hash-verified

123 * @throws Exception
124 */
125 public function deleteThreshold($thresholdId)
126 {
127 $sql = $this->db->getQueryBuilder();
128 $sql->delete(self::TABLE_NAME)
129 ->where($sql->expr()->eq('id', $sql->createNamedParameter($thresholdId)))
130 ->andWhere($sql->expr()->eq('user_id', $sql->createNamedParameter($this->userId)));
131 $sql->executeStatement();
132 return true;
133 }
134
135 /**
136 * @throws Exception

Callers 2

app.jsFile · 0.80
deleteMethod · 0.80

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected