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

Method getSevOneThresholdsByReport

lib/Db/ThresholdMapper.php:108–120  ·  view source on GitHub ↗

* @throws Exception */

($reportId)

Source from the content-addressed store, hash-verified

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

Callers 1

validateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected