gwPlayer = new GatewayPlayer(); $this->gwJouer = new GatewayJouer(); } public function addPlayer($player) { $this->gwPlayer->addPlayer($player); } public function verifyPlayer($player) { $playerId = $this->gwPlayer->verifyPlayer($player); return $playerId; } public function getPlayerByID($id) { $playerDataArray = $this->gwPlayer->getPlayerByID($id); $player = new Player($playerDataArray["id"], $playerDataArray["nickname"], $playerDataArray["password"]); } public function updatePlayer($id, $player) { $this->gwPlayer->updatePlayer($id, $player); } public function deletePlayerByID($id) { $this->gwPlayer->deletePlayerByID($id); } public function addJouer($jouer) { $this->gwJouer->addJouer($jouer); } public function getJouerByPlayerAndChapter( $idPlayer, $idChapter) { $jouerDataArray = $this->gwJouer->getJouerByPlayerAndChapter($idPlayer,$idChapter); return $jouerDataArray; } public function updateJouer($idPlayer, $idChapter, $jouer) { $this->gwJouer->updateJouer($idPlayer, $idChapter, $jouer); } }