public function __construct($dto = []) { parent::__construct($dto); }
public function __construct($dto = []) { parent::__construct($dto); $this->historyRepository = StationAqiHistoryRepository::getInstance(); }
public function delete(Entity $entity) { $query = $this->queryBuilder->delete($this->getTableName(), $entity->getId()); try { $result = $query->execute(); } catch (\PDOException $ex) { throw new QueryException($ex, $query); } return $result; }
public function __construct($dto = []) { parent::__construct($dto); $this->componentRepository = ComponentRepository::getInstance(); $this->stationRepository = StationRepository::getInstance(); }