pdo = $GLOBALS['pdo']; } public function getAll(): array { $stmt = $this->pdo->query('SELECT harvest_code, harvest_name FROM "harvest" ORDER BY harvest_name'); return $stmt->fetchAll(\PDO::FETCH_ASSOC) ?: []; } }