con = $con; } public function getFromId(int $id): array { $this->con->executeQuery("SELECT id, libelle FROM Sexe WHERE id=:id;", [':id' => [$id, $this->con::PARAM_INT]]); return $this->con->getOneResult(); } public function getSexes(): array { $this->con->executeQuery("SELECT id, libelle FROM Sexe;"); return $this->con->getResults(); } }