diff --git a/project/src/model/exception/IdSessionDoubleException.php b/project/src/model/exception/IdSessionDoubleException.php index 856083d..47b830f 100644 --- a/project/src/model/exception/IdSessionDoubleException.php +++ b/project/src/model/exception/IdSessionDoubleException.php @@ -4,5 +4,21 @@ namespace model; class IdSessionDoubleException extends \RuntimeException { + private int $idJoueur; + private string $idSession; + public function __construct($idJoueur, $idSession) + { + parent::__construct(); + $this->idJoueur=$idJoueur; + $this->idSession=$idSession; + } + + public function getIdJoueur():int{ + return $this->idJoueur; + } + + public function getIdSession(): string{ + return $this->idSession; + } } \ No newline at end of file