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

Method deleteThreshold

lib/Db/ThresholdMapper.php:127–135  ·  view source on GitHub ↗

* @throws Exception */

($thresholdId)

Source from the content-addressed store, hash-verified

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

Callers 2

app.jsFile · 0.80
deleteMethod · 0.80

Calls 2

eqMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected