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

Method getSevOneThresholdsByReport

lib/Db/ThresholdMapper.php:110–122  ·  view source on GitHub ↗

* @throws Exception */

($reportId)

Source from the content-addressed store, hash-verified

108 * @throws Exception
109 */
110 public function getSevOneThresholdsByReport($reportId)
111 {
112 $sql = $this->db->getQueryBuilder();
113 $sql->from(self::TABLE_NAME)
114 ->select('*')
115 ->where($sql->expr()->eq('report', $sql->createNamedParameter($reportId)))
116 ->andWhere($sql->expr()->eq('severity', $sql->createNamedParameter('1')))
117 ->orderBy('sequence', 'ASC');
118 $statement = $sql->executeQuery();
119 $result = $statement->fetchAll();
120 $statement->closeCursor();
121 return $result;
122 }
123
124 /**
125 * @throws Exception

Callers 2

validateMethod · 0.80

Calls 1

eqMethod · 0.80

Tested by

no test coverage detected