closeSession() public méthode

public closeSession ( $identifier, $reason )
 public function close(Player $player, $reason = "unknown reason")
 {
     if (isset($this->identifiers[$h = spl_object_hash($player)])) {
         unset($this->players[$this->identifiers[$h]]);
         unset($this->identifiersACK[$this->identifiers[$h]]);
         $this->interface->closeSession($this->identifiers[$h], $reason);
         unset($this->identifiers[$h]);
     }
 }
 public function close(Player $player, $reason = "unknown reason")
 {
     if (isset($this->identifiers[$player])) {
         unset($this->players[$this->identifiers[$player]]);
         unset($this->identifiersACK[$this->identifiers[$player]]);
         $this->interface->closeSession($this->identifiers[$player], $reason);
         $this->identifiers->detach($player);
     }
 }