/** * {@inheritdoc} */ public function failedJobStatistics() { $result = []; $event_types = $this->connection->executeFirstColumn('SELECT DISTINCT(`type`) FROM `' . self::FAILED_JOBS_TABLE_NAME . '`'); if (count($event_types)) { foreach ($event_types as $event_type) { $result[$event_type] = $this->failedJobStatisticsByType($event_type); } } return $result; }
/** * Return array of ID-s that match the given criteria. * * @return int[] */ public function ids() { $ids = $this->connection->executeFirstColumn($this->getSelectIdsSql()); return empty($ids) ? [] : $ids; }