authService = $authService; $this->dataManager = $dataManager; } /** * Récupère les activités de l'athlète actuel. * * @return array|null Retourne un tableau d'objets Activity en cas de succès, sinon null. */ public function getActivities(): ?array { if ($this->authService->getCurrentUser() && $this->authService->getCurrentUser()->getRole()->getActivities()) { return $this->authService->getCurrentUser()->getRole()->getActivities(); } return null; } } ?>