find($id); if (!$user) { throw new Exception( 'L\'utilisateur n\'existe pas' ); } return $user; } public function findAll(): array { // TODO: Implement findAll() method. } }